[Edit] Get to true root from EditPanesController

Part of refactoring to hide objects outside of Edit mode from
the Create menus in Edit mode, WTD-922.
This commit is contained in:
Victor Woeltjen
2015-03-18 09:46:16 -07:00
parent 6e783648d6
commit bb4ea2d4ae
2 changed files with 12 additions and 8 deletions

View File

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