From d66f1a1652583c7b5dc4f29062e1ab459b90e91b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 20 Jun 2013 12:34:52 +0200 Subject: [PATCH 1/1] canvas manager wip - indentation fix --- modules/documentCanvas/canvasManager.js | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/documentCanvas/canvasManager.js b/modules/documentCanvas/canvasManager.js index de085ce..81415d1 100644 --- a/modules/documentCanvas/canvasManager.js +++ b/modules/documentCanvas/canvasManager.js @@ -72,20 +72,20 @@ var Manager = function(canvas, sandbox) { }; Manager.prototype.selectNode = function(wlxmlNode, options) { - options = options || {}; - var nodeElement = this.getNodeElement(wlxmlNode) - - this.dimNode(wlxmlNode); - - this.canvas.dom.find('.rng-module-documentCanvas-currentNode').removeClass('rng-module-documentCanvas-currentNode'); - nodeElement.addClass('rng-module-documentCanvas-currentNode'); - - if(options.movecaret) { - this.movecaretToNode(nodeElement); - } - - this.currentNode = wlxmlNode; - this.sandbox.publish('nodeSelected', wlxmlNode); + options = options || {}; + var nodeElement = this.getNodeElement(wlxmlNode) + + this.dimNode(wlxmlNode); + + this.canvas.dom.find('.rng-module-documentCanvas-currentNode').removeClass('rng-module-documentCanvas-currentNode'); + nodeElement.addClass('rng-module-documentCanvas-currentNode'); + + if(options.movecaret) { + this.movecaretToNode(nodeElement); + } + + this.currentNode = wlxmlNode; + this.sandbox.publish('nodeSelected', wlxmlNode); }; Manager.prototype.getNodeElement = function(wlxmlNode) { -- 2.20.1