     @model.save null,
       success: (e) =>
         utils.msg.info "saved #{ @model.get "id" }"
-        setTimeout =>
-          @model.trigger "saved", @model
-        , 1000
+        @model.trigger "saved", @model
 
         if not @hasEditUrl()
           window.location.hash = "#edit/#{ @model.get("id") }"

      @editor.getSession().setValue slide.get "html"
      # console.log "changed", JSON.stringify @model.attributes

    @model.fetch
      success: =>
        @trigger 'init', @

  getDocId: ->
    @model.get "id"

    @editor = new Editor model: model
    
    @editor.bind "init", =>
      @preview.id = model.get "id"
      @preview.reload()
    
    model.bind "saved", =>
