mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Replace marker 'observe' methods w/ ordinary 'changed' event
This commit is contained in:
@@ -15,7 +15,7 @@ class MisspellingView extends View
|
||||
@misspellingValid = true
|
||||
|
||||
@marker = @editSession.markScreenRange(range, invalidationStrategy: 'between')
|
||||
@marker.observe ({newHeadScreenPosition, newTailScreenPosition, valid}) =>
|
||||
@marker.on 'changed', ({newHeadScreenPosition, newTailScreenPosition, valid}) =>
|
||||
@startPosition = newTailScreenPosition
|
||||
@endPosition = newHeadScreenPosition
|
||||
@updateDisplayPosition = valid
|
||||
|
||||
Reference in New Issue
Block a user