don't think we need this code anymore

A window's cad should be constant.
This commit is contained in:
Corey Johnson
2011-09-12 13:35:55 -07:00
parent e5efaffdb4
commit 5ae4975e98

View File

@@ -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