[Timeline] Deinline null action

...used for cases when no action is needed for timeline move
(and ids will just be reordered.)
This commit is contained in:
Victor Woeltjen
2016-03-21 11:53:10 -07:00
parent e7a6c34bcc
commit e0a69744e5

View File

@ -26,6 +26,12 @@ define(
function () { function () {
"use strict"; "use strict";
var NULL_ACTION = {
perform: function () {
return Promise.resolve(true);
}
};
/** /**
* Handles drop (from drag-and-drop) initiated changes to a swimlane. * Handles drop (from drag-and-drop) initiated changes to a swimlane.
* @constructor * @constructor
@ -119,11 +125,7 @@ define(
droppedParentId = droppedParent && droppedParent.getId(); droppedParentId = droppedParent && droppedParent.getId();
if (targetObject.getId() === droppedParentId) { if (targetObject.getId() === droppedParentId) {
return { return NULL_ACTION;
perform: function () {
return Promise.resolve(true);
}
};
} }
return actionCapability && actionCapability.getActions({ return actionCapability && actionCapability.getActions({