mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 08:28:41 +03:00
Avoid exceptions when a live editor is compared with a destroyed one
This commit is contained in:
parent
5837b7cfda
commit
626e22e4ae
@ -174,7 +174,8 @@ class Editor extends Model
|
||||
# Returns a {Boolean}.
|
||||
isEqual: (other) ->
|
||||
return false unless other instanceof Editor
|
||||
@buffer.getPath() == other.buffer.getPath() and
|
||||
@isAlive() == other.isAlive() and
|
||||
@buffer.getPath() == other.buffer.getPath() and
|
||||
@getScrollTop() == other.getScrollTop() and
|
||||
@getScrollLeft() == other.getScrollLeft() and
|
||||
@getCursorScreenPosition().isEqual(other.getCursorScreenPosition())
|
||||
|
Loading…
Reference in New Issue
Block a user