Code coverage report for src/wreqr.eventaggregator.js

Statements: 100% (5 / 5)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (5 / 5)     

All files » src/ » wreqr.eventaggregator.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18          1   1     1     1   1    
// Event Aggregator
// ----------------
// A pub-sub object that can be used to decouple various parts
// of an application through event-driven architecture.
 
Wreqr.EventAggregator = (function(Backbone, _){
  "use strict";
  var EA = function(){};
 
  // Copy the `extend` function used by Backbone's classes
  EA.extend = Backbone.Model.extend;
 
  // Copy the basic Backbone.Events on to the event aggregator
  _.extend(EA.prototype, Backbone.Events);
 
  return EA;
})(Backbone, _);