We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d51a33 commit 372404aCopy full SHA for 372404a
src/core/pluggable.js
@@ -13,10 +13,11 @@ define([
13
},
14
15
initializePlugins: function () {
16
+ var i, keys = _.keys(this.plugins);
17
var args = arguments;
- _.each(_.keys(this.plugins), $.proxy(function (k) {
18
- $.proxy(this.plugins[k], this)(this, args);
19
- }, this));
+ for (i=0; i<keys.length; i++) {
+ $.proxy(this.plugins[keys[i]], this).apply(this, args);
20
+ }
21
return args;
22
}
23
};
0 commit comments