Replace marker 'observe' methods w/ ordinary 'changed' event

This commit is contained in:
Nathan Sobo
2013-04-29 19:14:48 -06:00
parent 4ca00f7347
commit 51e915c423
7 changed files with 74 additions and 114 deletions

View File

@@ -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