From eaa164e1094ecc3c4291e145521bf64d3b79c817 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 11 Jan 2013 10:37:33 -0800 Subject: [PATCH] Use subscribe for window focus event handler --- src/app/root-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 99cf87eb6..f15e458c1 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -80,7 +80,7 @@ class RootView extends View handleEvents: -> @command 'toggle-dev-tools', => atom.toggleDevTools() @on 'focus', (e) => @handleFocus(e) - $(window).on 'focus', (e) => + @subscribe $(window), 'focus', (e) => @handleFocus(e) if document.activeElement is document.body @on 'root-view:active-path-changed', (e, path) =>