Revmoed logs

This commit is contained in:
Thomas FORGIONE 2015-05-26 11:54:49 +02:00
parent b4241d4546
commit 11c42f8ee2
1 changed files with 0 additions and 3 deletions

View File

@ -389,13 +389,11 @@ History.prototype.addState = function(state) {
++this.index;
this.size = this.index + 1;
this.states[this.size-1] = state;
console.log('New state ' + this.index + ' / ' + this.size);
}
History.prototype.undo = function() {
if (this.undoable()) {
this.index--;
console.log('New state ' + this.index + ' / ' + this.size);
return this.currentState();
}
}
@ -403,7 +401,6 @@ History.prototype.undo = function() {
History.prototype.redo = function() {
if (this.redoable()) {
this.index++;
console.log('New state ' + this.index + ' / ' + this.size);
return this.currentState();
}
}