From: Aleksander Ɓukasz Date: Fri, 14 Feb 2014 14:45:41 +0000 (+0100) Subject: editor: fix canvas wlxml listener nodeMoved event handling X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/c809e29b61d281d9584bb93f51ced02a6199802d editor: fix canvas wlxml listener nodeMoved event handling nodeAdded handler was getting called with invalid context --- diff --git a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js index 8275751..0ae8885 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js @@ -68,7 +68,7 @@ var handlers = { referenceElement[referenceAction](actionArg); }, nodeMoved: function(event) { - return handlers.nodeAdded(event, true); + return handlers.nodeAdded.call(this, event, true); }, nodeDetached: function(event) { var canvasNode = utils.findCanvasElementInParent(event.meta.node, event.meta.parent);