mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Code formating
Signed-off-by:Guillaume Martigny <guillaume.martigny@gmail.com>
This commit is contained in:
parent
0f00ef563a
commit
9b6d45e8ed
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user