 
     @options = options
 
+    @embedCache = []
+
     @setEmbedData data.link_embed or data.link?.link_embed or {}
     @setEmbedURL data.link_url or data.link?.link_url or ''
     @setEmbedImageIndex data.link_embed_image_index or data.link?.link_embed_image_index or 0
     @setEmbedHiddenItems data.link_embed_hidden_items or data.link?.link_embed_hidden_items or []
 
+
     super options,data
+
 
     # top right corner either has the remove-embed button
     # or the report-button (to report malicious content)

      callback no

  embedUrl:(url,options={},callback=noop)=>
    @embedLoader.show()
    @$("div.link-embed").addClass "loading"
    @fetchEmbed url, options, (data,embedlyOptions)=>


  resetEmbedAndHide:=>
    @resetEmbed()

    # these resets concern the whole box, not just the embed currently
    # displayed
    @embedLinks.clearLinks()
    @setEmbedCache []

    @hide()

  resetEmbed:=>
    @clearEmbed()

    # these resets only concern the currently displayed embed
    @setEmbedData {}
    @setEmbedURL ''
    @setEmbedHiddenItems []
