From 9589a68def1678bb08152f7f64407f30eb289005 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 21 Jul 2016 09:13:38 -0700 Subject: Fixing range optimization --- ext/fg/js/range.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3