History manager is firing events to trigger redraw of listeners
This commit is contained in:
parent
456bf4b55c
commit
62ae3f17a1
1 changed files with 2 additions and 6 deletions
|
@ -17,16 +17,12 @@
|
|||
|
||||
ns.HistoryManager.prototype.undo = function () {
|
||||
this.framesheet.getCurrentFrame().loadPreviousState();
|
||||
this.redraw();
|
||||
$.publish(Events.FRAMESHEET_RESET);
|
||||
};
|
||||
|
||||
ns.HistoryManager.prototype.redo = function () {
|
||||
this.framesheet.getCurrentFrame().loadNextState();
|
||||
this.redraw();
|
||||
$.publish(Events.FRAMESHEET_RESET);
|
||||
};
|
||||
|
||||
ns.HistoryManager.prototype.redraw = function () {
|
||||
this.framesheet.drawingController.renderFrame();
|
||||
this.framesheet.previewsController.createPreviews();
|
||||
};
|
||||
})();
|
Loading…
Reference in a new issue