mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Ensure status-bar unsubscribes from window focus events
By using `@subscribe` convenience method on space pen views
This commit is contained in:
@@ -36,8 +36,8 @@ class StatusBar extends View
|
||||
@updatePathText()
|
||||
|
||||
@updateCursorPositionText()
|
||||
@editor.on 'cursor-move', => @updateCursorPositionText()
|
||||
$(window).on 'focus', => @updateStatusBar()
|
||||
@subscribe @editor, 'cursor-move', => @updateCursorPositionText()
|
||||
@subscribe $(window), 'focus', => @updateStatusBar()
|
||||
|
||||
@subscribeToBuffer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user