[Remove Action] Check

Added check for traverseObject
context because prior to this,
was not checked.
This commit is contained in:
Shivam Dave 2015-08-31 13:37:22 -07:00
parent 54bf39344a
commit 7ffbc9ad2f

View File

@ -93,7 +93,7 @@ define(
var traverseObject = (navigationService).getNavigation();
// Stop when object is not defined (above ROOT)
while (traverseObject) {
while (traverseObject && traverseObject.getCapability('context')) {
// If object currently traversed to is object being removed
// navigate to parent of current object and then exit loop