1
0
mirror of https://github.com/danog/2048.git synced 2024-12-02 09:17:47 +01:00
2048/js/bind_polyfill.js

10 lines
220 B
JavaScript
Raw Normal View History

2014-03-23 19:51:29 +01:00
Function.prototype.bind = Function.prototype.bind || function (target) {
var self = this;
return function (args) {
if (!(args instanceof Array)) {
args = [args];
}
self.apply(target, args);
};
};