All pastes #177224 Raw Edit

yegs

public text v1 · immutable
#177224 ·published 2006-09-20 08:16 UTC
rendered paste body
Function.prototype.bind = function() {
  var __method = this, args = arguments, object = args.shift();
  return function() {
    return __method.apply(object, args.concat(arguments));
  }
}

/* to pass a bound function reference, do like such:
 * replace  this.showLists
 * with     this.showLists.bind(this)
/*/