From 62ae3f17a1d6d2c249cc0f3358b1595e7b790f37 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Fri, 14 Sep 2012 00:03:27 +0200 Subject: [PATCH] History manager is firing events to trigger redraw of listeners --- js/HistoryManager.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/js/HistoryManager.js b/js/HistoryManager.js index aa198c3f..e43c6157 100644 --- a/js/HistoryManager.js +++ b/js/HistoryManager.js @@ -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(); - }; })(); \ No newline at end of file