Thanks Gordon and Colin!
I managed to get it working last night by using var tree = instead of this.tree = and then referring to tree.draw() but it seemed hacky and inelegant.
I'll try both of these methods over the weekend and see which one leaves me with the smallest source file for the whole project. Its already a 55k include, so I need to shave as much as possible before minifying it.
Matt
General developer forum
javscript classes are turning my brain inside out
This discussion has been locked so you can no longer reply to it.