Skip to content

Instantly share code, notes, and snippets.

@andyburke
Created December 30, 2014 21:34
Show Gist options
  • Save andyburke/5a7632d10f0c35f96487 to your computer and use it in GitHub Desktop.
Save andyburke/5a7632d10f0c35f96487 to your computer and use it in GitHub Desktop.
emit example
<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