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.
2 parents c45c867 + c4dc4d9 commit 98738e2Copy full SHA for 98738e2
cocos2d/core/platform/CCClass.js
@@ -183,9 +183,9 @@ ClassManager.compileSuper.ClassManager = ClassManager;
183
184
Function.prototype.bind = Function.prototype.bind || function (bind) {
185
var self = this;
186
+ var args = Array.prototype.slice.call(arguments, 1);
187
return function () {
- var args = Array.prototype.slice.call(arguments);
188
- return self.apply(bind || null, args);
+ return self.apply(bind || null, args.concat(Array.prototype.slice.call(arguments)));
189
};
190
191
0 commit comments