Merge pull request #71 from juliandescottes/fix-historymanager

History manager is firing events to trigger redraw of listeners
This commit is contained in:
Julian Descottes 2012-09-13 15:06:47 -07:00
commit 2a4077eaad

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