atomController.path => window.path

This commit is contained in:
Chris Wanstrath
2011-11-06 15:59:26 -08:00
parent d94f251309
commit cba6fb844a
5 changed files with 17 additions and 17 deletions

View File

@@ -47,8 +47,8 @@ class TreePane extends Pane
true
reload: ->
@html.children('#tree .cwd').text _.last atomController.path.split '/'
fileList = @createList atomController.path
@html.children('#tree .cwd').text _.last window.path.split '/'
fileList = @createList window.path
fileList.addClass 'files'
@html.children('#tree .files').replaceWith fileList

View File

@@ -16,7 +16,7 @@ class Tree extends Extension
KeyBinder.load require.resolve "tree/key-bindings.coffee"
# watch the root dir
Watcher.watch atomController.path, @watchDir
Watcher.watch window.path, @watchDir
# Hide dirs that no longer exist, watch dirs that do.
for dir in @shownDirs()
@@ -34,7 +34,7 @@ class Tree extends Extension
@unwatchDir dir for dir in @shownDirs()
shownDirStorageKey: ->
@.constructor.name + ":" + atomController.path + ":shownDirs"
@.constructor.name + ":" + window.path + ":shownDirs"
watchDir: (dir) =>
@pane.reload()