From: Aleksander Ɓukasz Date: Mon, 24 Mar 2014 09:43:58 +0000 (+0100) Subject: editor: removing unused code X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/d3f25265091ecdb174206016f0fad5f94dffc362 editor: removing unused code --- diff --git a/src/editor/modules/documentCanvas/canvas/keyboard.js b/src/editor/modules/documentCanvas/canvas/keyboard.js index 378adee..85fbd43 100644 --- a/src/editor/modules/documentCanvas/canvas/keyboard.js +++ b/src/editor/modules/documentCanvas/canvas/keyboard.js @@ -266,7 +266,6 @@ handlers.push({keys: [KEYS.BACKSPACE, KEYS.DELETE], element.data('wlxmlNode').detach(); } canvas.setCurrentElement(goto, {caretTo: caretTo}); - canvas.publisher('contentChanged'); } else if(cursorAtOperationEdge) { if(direction === 'below') { diff --git a/src/editor/modules/documentCanvas/documentCanvas.js b/src/editor/modules/documentCanvas/documentCanvas.js index da7ac81..0a31114 100644 --- a/src/editor/modules/documentCanvas/documentCanvas.js +++ b/src/editor/modules/documentCanvas/documentCanvas.js @@ -61,7 +61,6 @@ return function(sandbox) { }, command: function(command, params) { commands.run(command, params, canvas, sandbox.getConfig().user); - sandbox.publish('contentChanged'); } };