var state=this._undoedSteps.pop(); if(state){ this._steps.push(state); this.apply(state,state.before,state.after); }