mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Merge pull request #71 from juliandescottes/fix-historymanager
History manager is firing events to trigger redraw of listeners
This commit is contained in:
commit
2a4077eaad
@ -17,16 +17,12 @@
|
|||||||
|
|
||||||
ns.HistoryManager.prototype.undo = function () {
|
ns.HistoryManager.prototype.undo = function () {
|
||||||
this.framesheet.getCurrentFrame().loadPreviousState();
|
this.framesheet.getCurrentFrame().loadPreviousState();
|
||||||
this.redraw();
|
$.publish(Events.FRAMESHEET_RESET);
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.HistoryManager.prototype.redo = function () {
|
ns.HistoryManager.prototype.redo = function () {
|
||||||
this.framesheet.getCurrentFrame().loadNextState();
|
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 New Issue
Block a user