kevoree / kevoree-web-editor

Kevoree model editor
http://editor.kevoree.org
6 stars 2 forks source link

Root not reset when clearing the Editor #59

Closed gnain closed 9 years ago

gnain commented 9 years ago

When clicking on "Model / Clear All", I think you need to reset the new model root (factory.setRoot(new Container()). Otherwise this issue appears when executing a KevScript after a clear:

Uncaught Error: Add Trace source not found for path : / pending null
{"t":"a","s":"/","r":"nodes","p":"/nodes[node0]","n":"org.kevoree.ContainerNode"} 
maxleiko commented 9 years ago

It seems like there is the same behavior if you open from a node that has a model which is not rooted