Removed not needed debug info.

This commit is contained in:
Martin Edenhofer 2014-12-09 11:42:04 +01:00
parent 78df419d8a
commit fc5fb2163d

View file

@ -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();