You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
This would either involve factoring out the duplicated code into an internal library or replacing it with a third-party, open-source library.
Here are the methods I'm referring to from TestCollection.
// @todo, make this a set of methods that all classes extend.listenTo: function(dispatcher,eventName,handler){// @todo polyfill Function.prototype.bind.handler=handler.bind(this);dispatcher.registerListener.call(dispatcher,eventName,handler);},registerListener: function(eventName,handler){// nb: 'this' is the dispatcher object, not the one that invoked listenTo.if(!this.listeners[eventName]){this.listeners[eventName]=[];}this.listeners[eventName].push(handler);},dispatch: function(eventName){if(this.listeners[eventName]&&this.listeners[eventName].length){vareventArgs=[].slice.call(arguments);this.listeners[eventName].forEach(function(handler){// Pass any additional arguments from the event dispatcher to the// handler function.handler.apply(null,eventArgs);});}},
The text was updated successfully, but these errors were encountered:
This would either involve factoring out the duplicated code into an internal library or replacing it with a third-party, open-source library.
Here are the methods I'm referring to from
TestCollection
.The text was updated successfully, but these errors were encountered: