From 0022318acaf4767c0b70052ccbd0c0a86effc691 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 19 Apr 2013 15:39:42 +0200 Subject: [PATCH] Visual editor: refactoring --- modules/visualEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/visualEditor.js b/modules/visualEditor.js index bb4ad31..06a5ab6 100644 --- a/modules/visualEditor.js +++ b/modules/visualEditor.js @@ -93,7 +93,7 @@ rng.modules.visualEditor = function(sandbox) { this.currentNode = node; mediator.nodeSelected(node); }, - markFirstSelected: function() { + selectFirstNode: function() { var firstNodeWithText = this.node.find('[wlxml-tag]').filter(function() { return $(this).clone().children().remove().end().text().trim() !== ''; }).first(); @@ -218,7 +218,7 @@ rng.modules.visualEditor = function(sandbox) { onShowed: function() { if(!wasShownAlready) { wasShownAlready = true; - view.markFirstSelected(); + view.selectFirstNode(); } } -- 2.20.1