Skip to content

Commit

Permalink
🚑 Fix atom-minimap#489
Browse files Browse the repository at this point in the history
If component is not defined, then the error found in atom-minimap#489 (comment) will happen. This way we prevent that.
  • Loading branch information
yajo authored Jan 24, 2017
1 parent 0e3d1d8 commit 69be322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/adapters/stable-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ module.exports = class StableAdapter {
editorDestroyed () {
return !this.textEditor ||
this.textEditor.isDestroyed() ||
!this.textEditorElement.component ||
!this.textEditorElement.getModel() ||
!this.textEditorElement.parentNode
}
Expand Down

0 comments on commit 69be322

Please sign in to comment.