mirror of
https://github.com/neon443/neon443.github.io.git
synced 2026-03-11 15:16:18 +00:00
forgot that 4 of them were git repos :skull
This commit is contained in:
9
games/2048/js/bind_polyfill.js
Normal file
9
games/2048/js/bind_polyfill.js
Normal 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);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user