core/Repository.js
function doOperation(operation) {
        if (operation.ops.length > 0) {
            try {
                $(exports).triggerHandler('beforeExecuteOperation', [operation]);
                _applyOperation(operation);
                if (operation.bypass !== true) {
                    _undoStack.push(operation);
                    _redoStack.clear();
                    $(exports).triggerHandler('operationExecuted', [operation]);
                }
            } catch (err) {
                console.error(err);
            }
        }
    }
function doOperation(operation) {
        if (operation.ops.length > 0) {
            try {
                $(exports).triggerHandler('beforeExecuteOperation', [operation]);
                _applyOperation(operation);
                if (operation.bypass !== true) {
                    _undoStack.push(operation);
                    _redoStack.clear();
                    $(exports).triggerHandler('operationExecuted', [operation]);
                }
            } catch (err) {
                console.error(err);
            }
        }
    }
function doOperation ( operation ) { if ( operation . ops . length > 0 ) { try { $ ( exports ) . triggerHandler ( 'beforeExecuteOperation' , [ operation ] ) ; _applyOperation ( operation ) ; if ( operation . bypass !== true ) { _undoStack . push ( operation ) ; _redoStack . clear ( ) ; $ ( exports ) . triggerHandler ( 'operationExecuted' , [ operation ] ) ; } } catch ( err ) { console . error ( err ) ; } } }
Do an Operation
If operation.bypass == true, the operation will not be pushed to UndoStack.
@param {Operation} operation
Do an Operation If operation . bypass == true the operation will not be pushed to UndoStack .