Skip to content

Instantly share code, notes, and snippets.

@yankov
Created August 23, 2011 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yankov/1166306 to your computer and use it in GitHub Desktop.
Save yankov/1166306 to your computer and use it in GitHub Desktop.
Badgeville.ready(function(){
Badgeville.Comet.bind( function( event, message ) {
console.log('site notification');
console.log( message );
event_handler(message);
});
Badgeville.bind( 'siteMessage', function( event, message ) {
console.log( message );
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment