mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
project has an activeResource, returns it in responder()
This commit is contained in:
@@ -18,6 +18,11 @@ class Project extends Resource
|
||||
|
||||
resources: []
|
||||
|
||||
activeResource: null
|
||||
|
||||
responder: ->
|
||||
@activeResource
|
||||
|
||||
open: (url) ->
|
||||
if not @url
|
||||
# Can only open directories.
|
||||
@@ -43,7 +48,7 @@ class Project extends Resource
|
||||
break if success = resource.open url
|
||||
|
||||
if success
|
||||
@resources.push resource
|
||||
@resources.push @activeResource = resource
|
||||
true
|
||||
|
||||
# Determines if a passed URL is a child of @url.
|
||||
|
||||
Reference in New Issue
Block a user