Hi everyone,

I split my (working fine) UI widget up into separate Classes for
reusability. Some of these Classes load on demand but still need to
pass info on to their sibling Classes.

I ended up with:
a Tab Class containing a Tree Class that asks for a JS Asset that
loads an Uploader Class that on completion refers back to the Tab
Class

But .bind or no .bind, by the end of my increasingly desperate 'pass
the parcel' nested functions, I've still lost my 'this'

What's the best way to properly pass functions across Class to Class
like this, without storing stuff in global variables?

Simple version:  http://jsfiddle.net/davepilbeam/YeF8K/

Thanks in advance

Reply via email to