mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Use subscribe for window focus listener
This commit is contained in:
@@ -21,7 +21,7 @@ class FuzzyFinder extends SelectList
|
||||
|
||||
initialize: (@rootView) ->
|
||||
super
|
||||
$(window).on 'focus', => @projectPaths = null
|
||||
@subscribe $(window), 'focus', => @projectPaths = null
|
||||
@observeConfig 'fuzzy-finder.ignoredNames', (ignoredNames) =>
|
||||
@projectPaths = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user