From 7b4405539ac7c11a11b5259b4f968e1289f0b2a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 24 Jun 2013 16:09:48 +0200 Subject: [PATCH] cleanup --- modules/documentToolbar/documentToolbar.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/documentToolbar/documentToolbar.js b/modules/documentToolbar/documentToolbar.js index c459428..e364e99 100644 --- a/modules/documentToolbar/documentToolbar.js +++ b/modules/documentToolbar/documentToolbar.js @@ -33,12 +33,6 @@ return function(sandbox) { wlxmlTag = split[0]; wlxmlClass = split[1]; } - if(window.getSelection().isCollapsed) { - //view.insertNewNode(wlxmlTag, wlxmlClass); - } - else { - //this.wrapWithNodeRequest(wlxmlTag, wlxmlClass); - } sandbox.publish('newNodeRequested', wlxmlTag, wlxmlClass); } else { sandbox.publish('command', btn.attr('data-btn'), btn.attr('data-meta')); -- 2.20.1