add https://github.com/mgarciaisaia mention to readme
[2048.git] / js / bind_polyfill.js
1
2
3
4
5
6
7
8
9
10
Function.prototype.bind = Function.prototype.bind || function (target) {
  var self = this;
  return function (args) {
    if (!(args instanceof Array)) {
      args = [args];
    }
    self.apply(target, args);
  };
};
 
comments