[Common UI] Fill in spec for RemoveAction

Fill in spec for the Remove action, included as part of
the bundle platform/commonUI/edit. WTD-574.
This commit is contained in:
Victor Woeltjen
2014-11-25 10:08:50 -08:00
parent 19b4dc3fa3
commit 7ddfcbca9b
2 changed files with 99 additions and 4 deletions

View File

@@ -77,13 +77,13 @@ define(
}
// Object needs to have a parent for Remove to be applicable
/*RemoveAction.appliesTo = function (context) {
var object = context.domainObject,
RemoveAction.appliesTo = function (context) {
var object = (context || {}).domainObject,
contextCapability = object && object.getCapability("context"),
parent = contextCapability && contextCapability.getParent();
return parent !== undefined &&
Array.isArray(parent.getModel().composition);
};*/
};
return RemoveAction;
}