Last active
          March 13, 2021 12:22 
        
      - 
      
 - 
        
Save benhowdle89/ba713a9a20fdf11870eb to your computer and use it in GitHub Desktop.  
Revisions
- 
        
benhowdle89 revised this gist
Sep 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ var Backbone = require('backbone'); // or any Event/PubSub lib you prefer var _vent = null; module.exports = {  - 
        
benhowdle89 created this gist
Sep 17, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ var _vent = require('./vent.js').shared(); _vent.trigger('blah'); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ var Backbone = require('backbone'); var _vent = null; module.exports = { shared: function () { if (!_vent) { _vent = _.extend({}, Backbone.Events); } return _vent; } }