This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Foo; | |
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
Foo = (function() { | |
function Foo() {} | |
Foo.prototype.init = function() { | |
var lalala = this; | |
$("#submitButton").click(__bind(function(event) { | |
// throws an error "HTMLDocument element does not have property onSubmitButtonClicked | |
return this.onSubmitButtonClicked(event); | |
}, lalala)); |