[Edit] Rename cancel() to finish()

This commit is contained in:
Alex M
2016-09-03 17:45:23 +03:00
parent ab4ce0caba
commit ded52b8d19
6 changed files with 14 additions and 14 deletions

View File

@ -95,11 +95,11 @@ define(
EditorCapability.prototype.invoke = EditorCapability.prototype.edit;
/**
* Cancel the current editing session. This will discard any pending
* Finish the current editing session. This will discard any pending
* persist operations
* @returns {*}
*/
EditorCapability.prototype.cancel = function () {
EditorCapability.prototype.finish = function () {
var domainObject = this.domainObject;
return this.transactionService.cancel().then(function () {
domainObject.getCapability("status").set("editing", false);