diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-09-23 12:42:02 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-09-23 12:42:02 -0700 |
commit | 327027d820759c62f50454822c11c0b8859c1d04 (patch) | |
tree | 3a13a25634b7eaf702634a3d6baeb8806c48ab02 /ext/fg/js/source.js | |
parent | 2eb85cb835a4aece7839eba25c0030e9eb186f85 (diff) | |
parent | d13cb09fae53834baaac254d7b55d02a26f4a5c0 (diff) |
Merge branch 'dev'
Diffstat (limited to 'ext/fg/js/source.js')
-rw-r--r-- | ext/fg/js/source.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js index 3b6ecb2a..664dbec7 100644 --- a/ext/fg/js/source.js +++ b/ext/fg/js/source.js @@ -82,7 +82,7 @@ class TextSourceRange { } equals(other) { - return other.range && other.range.compareBoundaryPoints(Range.START_TO_START, this.range) === 0; + return other && other.range && other.range.compareBoundaryPoints(Range.START_TO_START, this.range) === 0; } static shouldEnter(node) { @@ -239,6 +239,6 @@ class TextSourceElement { } equals(other) { - return other.element === this.element && other.content === this.content; + return other && other.element === this.element && other.content === this.content; } } |