editor: remove unused code
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 17 Apr 2014 14:46:22 +0000 (16:46 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 17 Apr 2014 14:46:22 +0000 (16:46 +0200)
src/editor/modules/documentCanvas/canvas/documentElement.js
src/editor/modules/documentCanvas/documentCanvas.js
src/editor/modules/rng/rng.js

index b91c3c1..27160e7 100644 (file)
@@ -47,10 +47,6 @@ $.extend(DocumentElement.prototype, {
         return other && (typeof other === typeof this) && other.dom()[0] === this.dom()[0];
     },
 
         return other && (typeof other === typeof this) && other.dom()[0] === this.dom()[0];
     },
 
-    markAsCurrent: function() {
-        this.canvas.markAsCurrent(this);
-    },
-
     getVerticallyFirstTextElement: function() {
         var toret;
         this.children().some(function(child) {
     getVerticallyFirstTextElement: function() {
         var toret;
         this.children().some(function(child) {
index 0a31114..6015089 100644 (file)
@@ -41,15 +41,6 @@ return function(sandbox) {
             canvas.loadWlxmlDocument(wlxmlDocument);
             canvasWrapper.find('#rng-module-documentCanvas-content').empty().append(canvas.view());
         },
             canvas.loadWlxmlDocument(wlxmlDocument);
             canvasWrapper.find('#rng-module-documentCanvas-content').empty().append(canvas.view());
         },
-        modifyCurrentNodeElement: function(attr, value) {
-            var currentNodeElement = canvas.getCurrentNodeElement();
-            if(attr === 'class' || attr === 'tag') {
-                currentNodeElement['setWlxml'+(attr[0].toUpperCase() + attr.substring(1))](value);
-            } else {
-                currentNodeElement.setWlxmlMetaAttr(attr, value);
-            }
-            sandbox.publish('currentNodeElementChanged', currentNodeElement);
-        },
         highlightElement: function(node) {
             canvas.toggleElementHighlight(node, true);
         },
         highlightElement: function(node) {
             canvas.toggleElementHighlight(node, true);
         },
index c9514f8..b12c19f 100644 (file)
@@ -220,10 +220,6 @@ return function(sandbox) {
     eventHandlers.nodePane = {
         ready: function() {
             views.currentNodePaneLayout.appendView(sandbox.getModule('nodePane').getView());
     eventHandlers.nodePane = {
         ready: function() {
             views.currentNodePaneLayout.appendView(sandbox.getModule('nodePane').getView());
-        },
-        
-        nodeElementChange: function(attr, value) {
-            sandbox.getModule('documentCanvas').modifyCurrentNodeElement(attr, value);
         }
     };
     
         }
     };