       @hiddenImageInput.val(dataUrl)
 
   $.fn.CoverPhoto = (data) ->
-    if data is 'get' and @.length is 1
-      CoverPhoto.cache[$(@).data('coverphoto-id')]
-
-    else
-      @each ->
-        new CoverPhoto
-          el: @
-          options: data+    @each ->
+      new CoverPhoto
+        el: @
+        options: data
      @options = $.extend(CoverPhoto.defaults, @options)
      html = @templates["src/templates/container.jst"]()
      @$el =  $(html).appendTo $(@el)

    cache: ->
      @$el.attr 'data-coverphoto-id', CoverPhoto.cacheCount
      CoverPhoto.cache[CoverPhoto.cacheCount] = @
      CoverPhoto.cacheCount++

    elements: ->
      @actionsContainer = $(".actions", @$el)

do ($) ->
  class CoverPhoto
    @defaults:
      postUrl:  '/update_cover_photo'
      editable: false
