Created
August 20, 2013 20:41
-
-
Save dustintheweb/6286999 to your computer and use it in GitHub Desktop.
Delegate Event Syntax / Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$services.on('click','.sub-columns a',function(){ | |
// stuff | |
}); | |
$someVariable.on('someevent','.classtarget',function(){ | |
// stuff | |
}); | |
// used for targeting specific events & classes | |
// more optimal than a dom crawl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment