From 0c53f4a333bbfcc04e75ad2f462f840301514321 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 25 Oct 2013 16:21:43 +0200 Subject: [PATCH 1/1] canvas: wlxmlListener fix Listener was installing handlers on every listenTo call. --- src/editor/modules/documentCanvas/canvas/wlxmlListener.js | 1 + 1 file changed, 1 insertion(+) 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]; -- 2.20.1