     remove: ->
       @stop()
       localStorage.removeItem @storageKey
-      e = $.Event('phnx.removed')
+      e = $.Event("phnx.removed")
       @$element.trigger(e)
       indexedItems = @indexedItems()
       indexedItems.slice $.inArray(@storageKey, indexedItems), 1

"use strict"

(($, window) ->
  pluginName = 'phoenix'
  defaults =
    namespace: 'phoenixStorage'
    maxItems: 100
    saveInterval: 1000
    clearOnSubmit: false

      @_name        = pluginName

      @$element     = $(@element)
      @options      = $.extend {}, defaults, (option if typeof option is "object")
      @action       = option if typeof option is "string"
      @uri          = window.location.host + window.location.pathname
      @storageKey   = [ @options.namespace, @uri, @element.tagName, @element.id, @element.name ].join(".")
      @storageIndexKey = [ @options.namespace, "index", window.location.host ].join(".")

      @init()

