 class Editor
 
     constructor: ->
+        @fresh = true
         window.editor = @
         @con = new Connection()
         @filename = "foo"


$ ->
    window.editor = new Editor()


    loggedin: ->
        @$login_box.hide()
        if editor.fresh and window.location.pathname[0...5] == "/edit"
            editor.open(window.location.pathname[6..])
        esc()

