codecombat / treema

jQuery plugin that generates HTML interfaces to edit JSON data defined by json-schema.
http://codecombat.github.io/treema/
MIT License
152 stars 36 forks source link

Figure out better, generic ways to have strategies get context data #36

Open sderickson opened 10 years ago

sderickson commented 10 years ago

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.