static_proj/2048/row/js/bind_polyfill.js
2020-12-02 22:57:53 +08:00

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);
};
};