History manager is firing events to trigger redraw of listeners

This commit is contained in:
juliandescottes 2012-09-14 00:03:27 +02:00
parent 456bf4b55c
commit 62ae3f17a1

View file

@ -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();
};
})();