Last active
August 29, 2015 14:22
-
-
Save bigdawggi/9db55d2e358aaa0259e9 to your computer and use it in GitHub Desktop.
Trigger events on non-DOM objects
This file contains 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
foo = {} | |
jQuery(foo).on('bar', function(){ alert('hey') }) | |
jQuery(foo).trigger('bar') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment