From fc5fb2163d9e0f89da199ed508becde16fe2577d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 9 Dec 2014 11:42:04 +0100 Subject: [PATCH] Removed not needed debug info. --- app/assets/javascripts/app/lib/base/medium.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/lib/base/medium.js b/app/assets/javascripts/app/lib/base/medium.js index dd3db427b..3f29718d1 100644 --- a/app/assets/javascripts/app/lib/base/medium.js +++ b/app/assets/javascripts/app/lib/base/medium.js @@ -1473,13 +1473,13 @@ html = this.html; if (d.createRange) { - var selection = w.getSelection() - var lastChild = html.lastChild() - var length = html.text(lastChild).length - 1 - var toModify = el ? el : lastChild - var theLength = ((typeof pos !== 'undefined') && (pos !== null) ? pos : length) + var selection = w.getSelection(), + lastChild = html.lastChild(), + length = html.text(lastChild).length - 1, + toModify = el ? el : lastChild, + theLength = ((typeof pos !== 'undefined') && (pos !== null) ? pos : length); + range = d.createRange(); - console.log('theLength', toModify, theLength, range) range.setStart(toModify, theLength); range.collapse(true); selection.removeAllRanges();