Created
December 30, 2014 21:34
-
-
Save andyburke/5a7632d10f0c35f96487 to your computer and use it in GitHub Desktop.
emit example
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
<script type="text/javascript"> | |
emit.on( ‘foo’, function( event ) { | |
console.log( ‘got a foo event from: ’ + event.emitTarget ); | |
} ); | |
</script> | |
… | |
<a data-emit="foo">emit foo</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment