   hello: ->
     alert "hello"
 
+class LightBox extends Backbone.View
+
+  error: (msg) ->
+    alert "ERROR: #{ msg }"
+
+  warning: (msg) ->
+    alert "WARNING: #{ msg }"
+
+  info: (msg) ->
+    alert "INFO: #{ msg }"
+
+  hide: ->
 
 class Editor extends Backbone.View
   el: ".edit_view"


  constructor: (opts) ->
   super opts

  routes:
    "": "start"

        if not @hasEditUrl()
          window.location.hash = "#edit/#{ @model.get("id") }"

      error: (e, err) =>
        console.log "failed to save", @model, e, err

  hasEditUrl: -> !!window.location.hash

