Merge remote-tracking branch 'upstream/master' into open23

This commit is contained in:
Shivam Dave
2015-06-25 14:08:46 -07:00
29 changed files with 1386 additions and 165 deletions

View File

@@ -68,6 +68,8 @@ define(
* @returns {DomainObject} the domain object in an editable form
*/
getEditableObject: function (domainObject) {
var type = domainObject.getCapability('type');
// Track the top-level domain object; this will have
// some special behavior for its context capability.
root = root || domainObject;
@@ -77,6 +79,11 @@ define(
return domainObject;
}
// Don't bother wrapping non-editable objects
if (!type || !type.hasFeature('creation')) {
return domainObject;
}
// Provide an editable form of the object
return new EditableDomainObject(
domainObject,
@@ -142,4 +149,4 @@ define(
return EditableDomainObjectCache;
}
);
);