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