Merge branch 'asyncfs' of github.com:probablycorey/Atomicity into asyncfs

This commit is contained in:
Nathan Sobo
2012-01-04 13:30:56 -07:00
5 changed files with 50 additions and 23 deletions

View File

@@ -21,8 +21,14 @@ class RootView extends Template
@bindKey 'meta+w', => window.close()
@bindKey 'meta+t', => @toggleFileFinder()
@project = new Project(fs.directory(url)) if url
@editor.open url
if not url
# not sure what to do
else if fs.isDirectory url
@project = new Project url
@editor.open()
else
@project = new Project(fs.directory(url))
@editor.open url
addPane: (view) ->
pane = $('<div class="pane">')