diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-08-09 21:23:05 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-08-09 21:23:05 -0700 |
commit | e6d821b73143c4825ecf915a7bbf838aa8aa0b9a (patch) | |
tree | ae052e2567f47f2de15e26ea2901127717a75196 /ext/fg/js/source-range.js | |
parent | dcce58fc2eab1f3b23abb90f5ce30536d7dbf1c1 (diff) |
Cleanup using promises
Diffstat (limited to 'ext/fg/js/source-range.js')
-rw-r--r-- | ext/fg/js/source-range.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/source-range.js b/ext/fg/js/source-range.js index 879b949c..a25b3fdc 100644 --- a/ext/fg/js/source-range.js +++ b/ext/fg/js/source-range.js @@ -77,7 +77,7 @@ class TextSourceRange { } equals(other) { - return other.rng && other.rng.compareBoundaryPoints(Range.START_TO_START, this.rng) == 0; + return other.rng && other.rng.compareBoundaryPoints(Range.START_TO_START, this.rng) === 0; } static seekForward(node, length) { |