manually apply #81

This commit is contained in:
Gabriele Cirulli
2014-03-23 19:51:29 +01:00
parent 2f91247132
commit cf01ca7e8b
5 changed files with 85 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
Function.prototype.bind = Function.prototype.bind || function (target) {
var self = this;
return function (args) {
if (!(args instanceof Array)) {
args = [args];
}
self.apply(target, args);
};
};