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) /*/