Created
February 4, 2015 17:01
-
-
Save zxqx/aca69a2d53b7a569d5d1 to your computer and use it in GitHub Desktop.
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
module.exports = BusService; | |
var BackboneEvents = require('backbone-events-standalone'); | |
/** | |
* Set up global event bus | |
* @constructor | |
* @param {Application} app | |
*/ | |
function BusService(app) | |
{ | |
app.register('bus', BackboneEvents).asInstance(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment