mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
don't think we need this code anymore
A window's cad should be constant.
This commit is contained in:
@@ -16,10 +16,7 @@ class Project extends Pane
|
||||
'Command-Ctrl-N': 'toggle'
|
||||
|
||||
initialize: ->
|
||||
@dir ?= File.workingDirectory()
|
||||
|
||||
activeWindow.document.ace.on 'open', ({filename}) =>
|
||||
@reload filename if File.isDirectory filename
|
||||
@dir = File.workingDirectory()
|
||||
|
||||
$('#project li').live 'click', (event) =>
|
||||
$('#project .active').removeClass 'active'
|
||||
@@ -48,9 +45,8 @@ class Project extends Pane
|
||||
|
||||
@showing = not @showing
|
||||
|
||||
reload: (dir=@dir) ->
|
||||
@dir = dir
|
||||
$('#project .cwd').text _.last dir.split '/'
|
||||
reload: ->
|
||||
$('#project .cwd').text _.last dir.split '/'
|
||||
$('#project li').remove()
|
||||
$('#project .files').append @createList dir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user