mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Let editor decide if it wants to open a file.
This commit is contained in:
@@ -82,9 +82,7 @@ windowAdditions =
|
||||
# Do open and close even belong here?
|
||||
open: (path) ->
|
||||
atomController.window.makeKeyAndOrderFront atomController
|
||||
|
||||
if not fs.isDirectory path
|
||||
Event.trigger 'window:open', path
|
||||
Event.trigger 'window:open', path
|
||||
|
||||
close: (path) ->
|
||||
extension.shutdown() for name, extension of @extensions
|
||||
|
||||
Reference in New Issue
Block a user