From: Aleksander Ɓukasz Date: Tue, 17 Dec 2013 10:50:17 +0000 (+0100) Subject: editor: fix - removing unnecessary event handler in sourceEditor module X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/61e73a2d096b2c692b4fe6659b832ca15629e502?ds=inline editor: fix - removing unnecessary event handler in sourceEditor module This was causing setting documentEditedHere on actions other than document edit, like navigating with arrow keys or invoking acejs search functionality. --- diff --git a/src/editor/modules/sourceEditor/sourceEditor.js b/src/editor/modules/sourceEditor/sourceEditor.js index c805b1b..420abc1 100644 --- a/src/editor/modules/sourceEditor/sourceEditor.js +++ b/src/editor/modules/sourceEditor/sourceEditor.js @@ -34,10 +34,6 @@ return function(sandbox) { session.setMode('ace/mode/xml'); session.setUseWrapMode(true); - $('textarea', view).on('keyup', function() { - documentEditedHere = true; - }); - editor.getSession().on('change', function() { documentEditedHere = true; });