This commit is contained in:
Kevin Sawicki
2014-08-22 10:02:09 -07:00
parent c9390b61de
commit a4ae314b00

View File

@@ -289,8 +289,7 @@ class AtomApplication
# Returns the {AtomWindow} for the given path.
windowForPath: (pathToOpen) ->
for atomWindow in @windows
return atomWindow if atomWindow.containsPath(pathToOpen)
_.find @windows, (atomWindow) -> atomWindow.containsPath(pathToOpen)
# Returns the {AtomWindow} for the given ipc event.
windowForEvent: ({sender}) ->