Check deprecations flag for space pen shim inclusion

This commit is contained in:
Kevin Sawicki
2015-03-25 17:11:42 -07:00
parent 23d1c72a5f
commit 63072bf8ae
4 changed files with 13 additions and 9 deletions

View File

@@ -152,9 +152,10 @@ class TextEditorComponent
if @editor.isAlive()
@updateParentViewFocusedClassIfNeeded()
@updateParentViewMiniClass()
@hostElement.__spacePenView.trigger 'cursor:moved' if cursorMoved
@hostElement.__spacePenView.trigger 'selection:changed' if selectionChanged
@hostElement.__spacePenView.trigger 'editor:display-updated'
if grim.includeDeprecations
@hostElement.__spacePenView.trigger 'cursor:moved' if cursorMoved
@hostElement.__spacePenView.trigger 'selection:changed' if selectionChanged
@hostElement.__spacePenView.trigger 'editor:display-updated'
readAfterUpdateSync: =>
@linesComponent.measureCharactersInNewLines() if @isVisible() and not @newState.content.scrollingVertically