Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created May 11, 2012 16:15
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 tommedema/2660716 to your computer and use it in GitHub Desktop.
Save tommedema/2660716 to your computer and use it in GitHub Desktop.
var mediator = new EventEmitter2({wildcard: false});
mediator.once('boot.ready', function() {
mediator.emit('server.created');
});
mediator.once('boot.ready', function() {
mediator.once('server.created', function() {
//no guarantee this will before before mediator.emit('server.created');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment