web/2048_fichiers/bind_polyfill.js

10 lines
220 B
JavaScript
Raw Normal View History

2018-07-07 11:19:15 +02: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);
};
};