Displaying 1 result from an estimated 1 matches for "onhellocomplet".
Did you mean:
onhellocomplete
2006 Jan 29
2
problem with xul/prototype experiment: "bind" method not found
...and everything seemed to be
going well until I ran into a wall - there seems to be some problem I
can''t explain with Function.prototype.bind, for instance when I run
this code:
try {
new Ajax.Request("http://localhost:3000/search/hello", {
onComplete: this.onHelloComplete.bind(this)
});
} catch (e) {
alert(e);
}
I get an exception printed that says "TypeError:
this.onHelloComplete.bind is not a function". I''ve done some more
experimenting and confirmed that my functions just don''t have bind
methods.
I''m a little fuz...