Code formating

Signed-off-by:Guillaume Martigny <guillaume.martigny@gmail.com>
This commit is contained in:
Guillaume Martigny 2016-04-19 17:13:40 +02:00 committed by Julian Descottes
parent 0f00ef563a
commit 9b6d45e8ed

View File

@ -58,11 +58,14 @@
$.publish(Events.HISTORY_STATE_SAVED);
};
ns.HistoryService.prototype.getCurrentStateIndex = function() {
return this.currentUUID;
};
ns.HistoryService.prototype.getCurrentState = function() {
if (this.currentUUID) {
return this.stateQueue[this.currentUUID];
}
else{
} else {
return false;
}
};
@ -99,14 +102,16 @@
ns.HistoryService.prototype.undo = function () {
var currentState = this.getCurrentState();
if(currentState.previousIndex)
if (currentState.previousIndex) {
this.loadState(currentState.previousIndex);
}
};
ns.HistoryService.prototype.redo = function () {
var currentState = this.getCurrentState();
if(currentState.nextIndex)
if (currentState.nextIndex) {
this.loadState(currentState.nextIndex);
}
};
ns.HistoryService.prototype.isLoadStateAllowed_ = function (index) {