Skip to content

Commit

Permalink
fix #646
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed May 4, 2016
1 parent a9153dc commit a2a69b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class Selection {
// TODO unclear if this has negative side effects
this.emitter.once(Emitter.events.SCROLL_UPDATE, () => {
try {
// Check crash condition in FF https://bugzilla.mozilla.org/show_bug.cgi?id=1270235
if (native.start.node.parentNode == null || native.end.node.parentNode == null) return;
this.setNativeRange(native.start.node, native.start.offset, native.end.node, native.end.offset);
} catch (ignored) {}
});
Expand Down

0 comments on commit a2a69b1

Please sign in to comment.