lib/undo-manager.js
function UndoManager (maxItems) {
    this.maxItems  = maxItems || 50;
    this.state = NORMAL_STATE;
    this.dontCompose = false;
    this.undoStack = [];
    this.redoStack = [];
  }
function UndoManager (maxItems) {
    this.maxItems  = maxItems || 50;
    this.state = NORMAL_STATE;
    this.dontCompose = false;
    this.undoStack = [];
    this.redoStack = [];
  }
function UndoManager ( maxItems ) { this . maxItems = maxItems || 50 ; this . state = NORMAL_STATE ; this . dontCompose = false ; this . undoStack = [ ] ; this . redoStack = [ ] ; }
Create a new UndoManager with an optional maximum history size.
Create a new UndoManager with an optional maximum history size .