bind_polyfill.js 220 B

12345678910
  1. Function.prototype.bind = Function.prototype.bind || function (target) {
  2. var self = this;
  3. return function (args) {
  4. if (!(args instanceof Array)) {
  5. args = [args];
  6. }
  7. self.apply(target, args);
  8. };
  9. };