This commit is contained in:
Matt Colyer 2013-09-12 11:57:11 -07:00
parent 3dd6e97ca1
commit 9a64b2775d

View File

@ -17,7 +17,7 @@ class WindowEventHandler
@subscribe $(window), 'focus', -> $("body").removeClass('is-blurred')
@subscribe $(window), 'blur', -> $("body").addClass('is-blurred')
@subscribe $(window), 'window:open-path', (event, {pathToOpen, initialLine}) ->
rootView?.open(pathToOpen, initialLine: initialLine) unless fsUtils.isDirectorySync(pathToOpen)
rootView?.open(pathToOpen, {initialLine}) unless fsUtils.isDirectorySync(pathToOpen)
@subscribe $(window), 'beforeunload', -> rootView?.confirmClose()
@subscribeToCommand $(window), 'window:toggle-full-screen', => atom.toggleFullScreen()