editor: removing unsued code (canvas grid)
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 11 Jun 2014 09:03:18 +0000 (11:03 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 23 Jun 2014 14:38:01 +0000 (16:38 +0200)
src/editor/modules/documentCanvas/canvas/canvas.js
src/editor/modules/documentCanvas/nodes.less

index 5bd5e85..d4e16ad 100644 (file)
@@ -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');
     }
 });
 
index 3b47209..7938911 100644 (file)
     border: none;
 }
 
-.grid-on {
-    [wlxml-tag] {
-        .rng-common-hoveredNode;
-    }
-}
-
 [wlxml-tag=span] {
     min-width: 10px;
 }