       @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
    @cache: []; @cacheCount: 0
    @defaults:
      postUrl:  '/update_cover_photo'
      editable: false

    constructor: ({@el, @options}) ->
      @templates = coverphotoTemplates
      @setup()
      @render()
      @elements()
      @bindEvents()
