From: Aleksander Ɓukasz Date: Thu, 20 Jun 2013 10:34:52 +0000 (+0200) Subject: canvas manager wip - indentation fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/d66f1a1652583c7b5dc4f29062e1ab459b90e91b?ds=sidebyside canvas manager wip - indentation fix --- 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) {