summaryrefslogtreecommitdiff
path: root/ext/fg/js/source-range.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/source-range.js')
-rw-r--r--ext/fg/js/source-range.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/source-range.js b/ext/fg/js/source-range.js
index a6c3d722..bd13a1b6 100644
--- a/ext/fg/js/source-range.js
+++ b/ext/fg/js/source-range.js
@@ -63,8 +63,8 @@ class RangeSource {
selection.removeAllRanges();
}
- compareOrigin(range) {
- return range.rng.compareBoundaryPoints(Range.START_TO_START, this.rng);
+ equals(other) {
+ return other.rng && other.rng.compareBoundaryPoints(Range.START_TO_START, this.rng) == 0;
}
static seekEnd(node, length) {