not dirty on open

This commit is contained in:
Chris Wanstrath
2011-08-22 23:39:23 -07:00
parent fcce52b8ab
commit de898ff770

View File

@@ -19,6 +19,7 @@ open = ->
Chrome.title _.last filename.split('/')
editor.getSession().setValue File.read filename
setMode()
Chrome.setDirty false
setMode = ->
if /\.js$/.test filename
editor.getSession().setMode new JavaScriptMode