From: Aleksander Ɓukasz Date: Wed, 11 Jun 2014 09:03:18 +0000 (+0200) Subject: editor: removing unsued code (canvas grid) X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/a920c78116d0177f440c98fb4a067437fea5f27c?ds=inline editor: removing unsued code (canvas grid) --- diff --git a/src/editor/modules/documentCanvas/canvas/canvas.js b/src/editor/modules/documentCanvas/canvas/canvas.js index 5bd5e85..d4e16ad 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.js @@ -418,14 +418,6 @@ $.extend(Canvas.prototype, Backbone.Events, { if(position.element) { this._moveCaretToTextElement(position.element, position.offset); } - }, - - toggleGrid: function() { - this.rootWrapper.toggleClass('grid-on'); - this.trigger('changed'); - }, - isGridToggled: function() { - return this.rootWrapper.hasClass('grid-on'); } }); diff --git a/src/editor/modules/documentCanvas/nodes.less b/src/editor/modules/documentCanvas/nodes.less index 3b47209..7938911 100644 --- a/src/editor/modules/documentCanvas/nodes.less +++ b/src/editor/modules/documentCanvas/nodes.less @@ -20,12 +20,6 @@ border: none; } -.grid-on { - [wlxml-tag] { - .rng-common-hoveredNode; - } -} - [wlxml-tag=span] { min-width: 10px; }