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

          @element.checked = JSON.parse savedValue
        else if @element.tagName is "SELECT"
          self = @
          @$element.find('option').prop('selected', false)
          $.each JSON.parse(savedValue), (i, value) ->
            self.$element.find("option[value='#{value}']").prop('selected', true)
        else
          @element.value = savedValue
        e = $.Event('phnx.loaded')
        @$element.trigger(e)

    save: ->

        JSON.stringify selectedValues
      else
        @element.value
      e = $.Event("phnx.saved")
      @$element.trigger(e)
      @updateIndex()

