In this code, will the trigger then call topbar.resize or will it just simply run the function contained in it? I assume there is a context difference between the two, or how does that work?
jQuery.bind("hideBackstage", topbar.resize);
Edit: How do I make it just simply call topbar.resize?
The call will be equivalent to
That is the function “contained” in
topbar.resizewill be called with receiver (this) the element having received the event and with parameter the event (wrapped as a jquery event).This is different from
because
this) won’t betopbarEDIT following your EDIT :
If you just want the call to be equivalent to
topbar.resize(), simply do this :