Take for example the point node in the level editor. It knows to open a modal for the given level through data options that are passed in on the creation of the root Treema node. Is there a better way to do this? Can Treema nodes be made to be more context independent? The less we have to pass in contextually, the better. Possibly this just has to be done node by node, using things like backbone mediator to send out generic notifications or by sharing data such as component names through globally accessible routes. The benefit is that for views like the delta view, it can get complete data on the properties that are changed.
Take for example the point node in the level editor. It knows to open a modal for the given level through data options that are passed in on the creation of the root Treema node. Is there a better way to do this? Can Treema nodes be made to be more context independent? The less we have to pass in contextually, the better. Possibly this just has to be done node by node, using things like backbone mediator to send out generic notifications or by sharing data such as component names through globally accessible routes. The benefit is that for views like the delta view, it can get complete data on the properties that are changed.