[Edit] Hide root object

Act as if the object being edited is the root object when
in Edit mode, except in the Library pane (which has its own
means of getting the real root object.) WTD-922.
This commit is contained in:
Victor Woeltjen
2015-03-17 18:11:46 -07:00
parent 6c83b3774d
commit 6e783648d6
4 changed files with 37 additions and 4 deletions

View File

@ -16,7 +16,7 @@ define(
function updateRoot(domainObject) {
var context = domainObject &&
domainObject.getCapability('context'),
newRoot = context && context.getRoot(),
newRoot = context && context.getRealRoot(),
oldId = root && root.getId(),
newId = newRoot && newRoot.getId();