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