Lines Matching refs:commands
197 for (var j = 0; j < entry.commands.length; j++) {
198 if (entry.commands[j].entity === undo.command.entity.task) {
199 changeTaskCommandId(entry.commands[j], oldId, newId);
201 else if (entry.commands[j].entity === undo.command.entity.link) {
202 changeLinkCommandId(entry.commands[j], oldId, newId);
211 for (var j = 0; j < entry.commands.length; j++) {
212 var command = entry.commands[j];
533 this._batchAction.commands.push(command);
593 create: function (commands) { argument
594 return { commands: (commands ? commands.slice() : []) };
599 var commands = _this.command;
600 for (var i = 0; i < action.commands.length; i++) {
601 var command = revert.commands[i] = commands.invert(revert.commands[i]);
602 … if (command.type === commands.type.update || command.type === commands.type.move) {
709 if (!action.commands.length) {
717 if (!action.commands.length) {
735 action.commands.sort(function (a, b) {
775 for (var i = 0; i < action.commands.length; i++) {
776 command = action.commands[i];