canvas manager wip - indentation fix
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 20 Jun 2013 10:34:52 +0000 (12:34 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 20 Jun 2013 10:34:52 +0000 (12:34 +0200)
modules/documentCanvas/canvasManager.js

index de085ce..81415d1 100644 (file)
@@ -72,20 +72,20 @@ var Manager = function(canvas, sandbox) {
 };\r
     \r
 Manager.prototype.selectNode = function(wlxmlNode, options) {\r
 };\r
     \r
 Manager.prototype.selectNode = function(wlxmlNode, options) {\r
-        options = options || {};\r
-        var nodeElement = this.getNodeElement(wlxmlNode)\r
-        \r
-        this.dimNode(wlxmlNode);\r
-        \r
-        this.canvas.dom.find('.rng-module-documentCanvas-currentNode').removeClass('rng-module-documentCanvas-currentNode');\r
-        nodeElement.addClass('rng-module-documentCanvas-currentNode');\r
-         \r
-        if(options.movecaret) {\r
-            this.movecaretToNode(nodeElement);\r
-        }\r
-        \r
-        this.currentNode = wlxmlNode;\r
-        this.sandbox.publish('nodeSelected', wlxmlNode);\r
+    options = options || {};\r
+    var nodeElement = this.getNodeElement(wlxmlNode)\r
+    \r
+    this.dimNode(wlxmlNode);\r
+    \r
+    this.canvas.dom.find('.rng-module-documentCanvas-currentNode').removeClass('rng-module-documentCanvas-currentNode');\r
+    nodeElement.addClass('rng-module-documentCanvas-currentNode');\r
+    \r
+    if(options.movecaret) {\r
+        this.movecaretToNode(nodeElement);\r
+    }\r
+    \r
+    this.currentNode = wlxmlNode;\r
+    this.sandbox.publish('nodeSelected', wlxmlNode);\r
 };\r
 \r
 Manager.prototype.getNodeElement = function(wlxmlNode) {\r
 };\r
 \r
 Manager.prototype.getNodeElement = function(wlxmlNode) {\r