[Edit] Remove unused code
Remove unused and/or excessive code related to Save in Edit mode. WTD-1033.
This commit is contained in:
@@ -33,7 +33,7 @@ define(
|
||||
// removed from the layer which gets dependency
|
||||
// injection.
|
||||
function resolvePromise(value) {
|
||||
return value && value.then ? value : {
|
||||
return (value && value.then) ? value : {
|
||||
then: function (callback) {
|
||||
return resolvePromise(callback(value));
|
||||
}
|
||||
@@ -53,18 +53,6 @@ define(
|
||||
return persistenceCapability.persist();
|
||||
}
|
||||
|
||||
// Save any other objects that have been modified in the cache.
|
||||
// IMPORTANT: This must not be called until after this object
|
||||
// has been marked as clean.
|
||||
function saveOthers() {
|
||||
return cache.saveAll();
|
||||
}
|
||||
|
||||
// Indicate that this object has been saved.
|
||||
function markClean() {
|
||||
return cache.markClean(editableObject);
|
||||
}
|
||||
|
||||
return {
|
||||
/**
|
||||
* Save any changes that have been made to this domain object
|
||||
|
||||
Reference in New Issue
Block a user