aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom/text-source-range.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-08-20 12:38:55 -0400
committerGitHub <noreply@github.com>2022-08-20 12:38:55 -0400
commitcd0a6b60e2f910e497a5b72bee1a27a0d1c575d2 (patch)
tree77de874d1f6a3549ff6a1630d820989ab8a320e4 /ext/js/dom/text-source-range.js
parentc5c5308ff2addbce1f1d55dd5a8a91bbed610ee1 (diff)
Fix setEndOffset (#2214)
* Add _layoutAwareScan option to TextSourceElement.setEndOffset for parity * Remove default param
Diffstat (limited to 'ext/js/dom/text-source-range.js')
-rw-r--r--ext/js/dom/text-source-range.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/dom/text-source-range.js b/ext/js/dom/text-source-range.js
index e0e2c5b0..5e3e814c 100644
--- a/ext/js/dom/text-source-range.js
+++ b/ext/js/dom/text-source-range.js
@@ -66,7 +66,7 @@ class TextSourceRange {
return this._content;
}
- setEndOffset(length, layoutAwareScan, fromEnd=false) {
+ setEndOffset(length, layoutAwareScan, fromEnd) {
const state = (
fromEnd ?
new DOMTextScanner(this._range.endContainer, this._range.endOffset, !layoutAwareScan, layoutAwareScan).seek(length) :