From: Aleksander Ɓukasz Date: Fri, 25 Oct 2013 14:21:43 +0000 (+0200) Subject: canvas: wlxmlListener fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/0c53f4a333bbfcc04e75ad2f462f840301514321?hp=55da6d6c73cdb1627cf71e7419eb3cc2f5e53c08 canvas: wlxmlListener fix Listener was installing handlers on every listenTo call. --- diff --git a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js index ec3001d..ecf4900 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js @@ -14,6 +14,7 @@ $.extend(Listener.prototype, { if(wlxmlDocument === this.wlxmlDocument) { return; } + this.wlxmlDocument = wlxmlDocument; wlxmlDocument.on('change', function(event) { var handler = handlers[event.type];