[New Edit Mode] Fixed failing tests, and added new test in CreateWizard

[New Edit Mode] #480 fixed JSLint errors

[New Edit Mode] #480 do not show locator for sub objects

[New Edit Mode] Modified persistence in SaveAction

Removed redundant variable

Fixed Failing Test

Fixed JSLint errors

Improved some documentation
This commit is contained in:
Henry
2016-01-20 20:52:26 -08:00
parent c65096f166
commit cd2b19eb1e
9 changed files with 75 additions and 28 deletions

View File

@ -45,7 +45,8 @@ define(
cache,
idempotent
) {
var capability = Object.create(contextCapability);
var capability = Object.create(contextCapability),
method;
// Check for domain object interface. If something has these
// three methods, we assume it's a domain object.
@ -114,7 +115,7 @@ define(
}
// Wrap all methods; return only editable domain objects.
for (var method in contextCapability){
for (method in contextCapability) {
wrapMethod(method);
}

View File

@ -110,8 +110,8 @@ define(
}
//Return the original (non-editable) object
return returnPromise.then(function() {
return domainObject;
})
return domainObject.getOriginalObject ? domainObject.getOriginalObject() : domainObject;
});
};
/**