       type      : "mini"
       cssClass  : "editor #{style}"
       container : @parent
-      duration  : if details then 5000 else 2500
+      duration  : duration or if details then 5000 else 2500
       details   : details
       click     : ->
         if notification.getOptions().details


    file = @getData()
    unless /localfile:/.test file.path
      file.fetchContents callback
    else
      callback null, file.contents or ""

  ###

  notification = null
  notify:(msg, style, details, duration)->

    notification.destroy() if notification

