[Edit] Final two actions now use finish()

This commit is contained in:
Alex M
2016-09-13 22:35:11 +03:00
parent 79b16ddda6
commit 4382745012
4 changed files with 8 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ define(
EditAction.prototype.perform = function () {
var self = this;
function cancelEditing() {
self.domainObject.getCapability('editor').cancel();
self.domainObject.getCapability('editor').finish();
self.navigationService.removeListener(cancelEditing);
}
//If this is not the currently navigated object, then navigate

View File

@@ -72,7 +72,7 @@ define(
}
function onCancel() {
return editorCapability.cancel();
return editorCapability.finish();
}
newModel.type = this.type.getKey();