diff --git a/www/pad/comments.js b/www/pad/comments.js index 0ed0b0399..0d4f120a9 100644 --- a/www/pad/comments.js +++ b/www/pad/comments.js @@ -316,7 +316,7 @@ define([ var oldSelection = window.getSelection(); var oldRangeObj; if ($(oldSelection.anchorNode).closest('.cp-comment-form').length) { - oldRange = oldSelection.getRangeAt && oldSelection.getRangeAt(0); + var oldRange = oldSelection.getRangeAt && oldSelection.getRangeAt(0); oldRangeObj = { start: oldRange.startContainer, startO: oldRange.startOffset,