 
 $ ->
     window.editor = new Editor()
+


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


class UndoStack

    constructor: ->
        @clear()

    clear: =>
        @undos = []
        @redos = []

