summaryrefslogtreecommitdiff
path: root/ext/fg/js/range.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-07-21 09:13:38 -0700
committerAlex Yatskov <alex@foosoft.net>2016-07-21 09:13:38 -0700
commit9589a68def1678bb08152f7f64407f30eb289005 (patch)
treea4f171bad97b9110b84883f550f4109875e4374e /ext/fg/js/range.js
parente4ecf11fc75d1103c29491dcd4edf24f0426366a (diff)
Fixing range optimization
Diffstat (limited to 'ext/fg/js/range.js')
-rw-r--r--ext/fg/js/range.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/range.js b/ext/fg/js/range.js
index 182e242c..c4cabf4b 100644
--- a/ext/fg/js/range.js
+++ b/ext/fg/js/range.js
@@ -64,7 +64,7 @@ class Range {
}
compareOrigin(range) {
- return range.rng.compareBoundaryPoints(Range.END_TO_END, this.rng);
+ return range.rng.compareBoundaryPoints(Range.START_TO_START, this.rng);
}
static seekEnd(node, length) {