Lines Matching refs:action

309         this._batchAction = this._undo.action.create();
536 var action = undo.action.create([command]);
537 undo.logAction(action);
592 this.action = { class in AnonymousFunction4dce81d40100.AnonymousFunction4dce81d42100.Undo.Undo
596 invert: function (action) { argument
598 var revert = gantt.copy(action);
600 for (var i = 0; i < action.commands.length; i++) {
670 var action = this._pop(this._undoStack);
671 if (action) {
672 this._reorderCommands(action);
674 if (gantt.callEvent("onBeforeUndo", [action]) !== false) {
675 if (action) {
676 this._applyAction(this.action.invert(action));
677 this._push(this._redoStack, gantt.copy(action));
678 gantt.callEvent("onAfterUndo", [action]);
689 var action = this._pop(this._redoStack);
690 if (action) {
691 this._reorderCommands(action);
693 if (gantt.callEvent("onBeforeRedo", [action]) !== false) {
694 if (action) {
695 this._applyAction(action);
696 this._push(this._undoStack, gantt.copy(action));
697 gantt.callEvent("onAfterRedo", [action]);
704 Undo.prototype.logAction = function (action) { argument
705 this._push(this._undoStack, action);
708 Undo.prototype._push = function (stack, action) { argument
709 if (!action.commands.length) {
713 if (gantt.callEvent(event, [action]) === false) {
717 if (!action.commands.length) {
720 stack.push(action);
724 return action;
729 Undo.prototype._reorderCommands = function (action) { argument
735 action.commands.sort(function (a, b) {
754 Undo.prototype._applyAction = function (action) { argument
775 for (var i = 0; i < action.commands.length; i++) {
776 command = action.commands[i];