I have the function:
$(this.myObject).click(A.bind(this));
function A(){
// stuff here
}
I want to call from within a second function (binding this).
$(this.myOtherObject).click(B.bind(this));
function B(){
A(); // works but does not bind
A.bind(this); // does not work
}
How can I do this?
.callor.apply, by providingthisas the first argoment of either two. Otherwise, use.bind, then call the function explicitely.