From: Aleksander Ɓukasz Date: Thu, 20 Mar 2014 09:58:03 +0000 (+0100) Subject: editor: removing unused code X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/c54224aa06f2a7defa140494563d98167e0ea8ae?ds=sidebyside;hp=c224cdef02533a5a5962fa25f1a76f86c0d60005 editor: removing unused code --- diff --git a/src/editor/modules/documentCanvas/canvas/canvas.js b/src/editor/modules/documentCanvas/canvas/canvas.js index d8d81b8..663b8a6 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.js @@ -143,7 +143,6 @@ $.extend(Canvas.prototype, { canvas._moveCaretToTextElement(canvas.getDocumentElement(mutation.target), 'end'); } observer.observe(canvas.wrapper[0], config); - canvas.publisher('contentChanged'); var textElement = canvas.getDocumentElement(mutation.target), toSet = mutation.target.data !== utils.unicode.ZWS ? mutation.target.data : ''; @@ -257,7 +256,6 @@ $.extend(Canvas.prototype, { } else { this.wrapper.find('.current-node-element').removeClass('current-node-element'); element._container().addClass('current-node-element'); - this.publisher('currentElementChanged', element); } }.bind(this); diff --git a/src/editor/modules/sourceEditor/sourceEditor.js b/src/editor/modules/sourceEditor/sourceEditor.js index 8f0c833..12536ac 100644 --- a/src/editor/modules/sourceEditor/sourceEditor.js +++ b/src/editor/modules/sourceEditor/sourceEditor.js @@ -15,7 +15,6 @@ return function(sandbox) { editor.gotoLine(0); documentEditedHere = false; - sandbox.publish('documentSet'); documentIsDirty = false; } };