Removed not needed debug info.
This commit is contained in:
parent
78df419d8a
commit
fc5fb2163d
1 changed files with 6 additions and 6 deletions
|
@ -1473,13 +1473,13 @@
|
||||||
html = this.html;
|
html = this.html;
|
||||||
|
|
||||||
if (d.createRange) {
|
if (d.createRange) {
|
||||||
var selection = w.getSelection()
|
var selection = w.getSelection(),
|
||||||
var lastChild = html.lastChild()
|
lastChild = html.lastChild(),
|
||||||
var length = html.text(lastChild).length - 1
|
length = html.text(lastChild).length - 1,
|
||||||
var toModify = el ? el : lastChild
|
toModify = el ? el : lastChild,
|
||||||
var theLength = ((typeof pos !== 'undefined') && (pos !== null) ? pos : length)
|
theLength = ((typeof pos !== 'undefined') && (pos !== null) ? pos : length);
|
||||||
|
|
||||||
range = d.createRange();
|
range = d.createRange();
|
||||||
console.log('theLength', toModify, theLength, range)
|
|
||||||
range.setStart(toModify, theLength);
|
range.setStart(toModify, theLength);
|
||||||
range.collapse(true);
|
range.collapse(true);
|
||||||
selection.removeAllRanges();
|
selection.removeAllRanges();
|
||||||
|
|
Loading…
Reference in a new issue