Created
March 14, 2013 17:49
-
-
Save atleastimtrying/5163497 to your computer and use it in GitHub Desktop.
how on delegates
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
var clicky = function(event){ | |
$(event.currentTarget).addClass('stupid'); | |
}; | |
$('.container').on({ | |
click: clicky, | |
mouseover: clicky | |
}, '.child'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment