Skip to content

Instantly share code, notes, and snippets.

@dginev
Created May 22, 2015 23:06
Show Gist options
  • Save dginev/d54667eae82f47e3b798 to your computer and use it in GitHub Desktop.
Save dginev/d54667eae82f47e3b798 to your computer and use it in GitHub Desktop.
Logical JS
for el in clickable_things_to_track
$( document ).on "click", el, (e) ->
mixpanel.track(el)
@natejenkins
Copy link

I guess the lesson here is to use jquery .each or lodash foreach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment