mirror of
https://github.com/danog/2048.git
synced 2024-11-26 19:34:44 +01:00
10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
Function.prototype.bind = Function.prototype.bind || function (target) {
|
|
var self = this;
|
|
return function (args) {
|
|
if (!(args instanceof Array)) {
|
|
args = [args];
|
|
}
|
|
self.apply(target, args);
|
|
};
|
|
};
|