     #     @setEmbedURL url
     #     callback oembed,embedlyOptions
 
-  populateEmbed:(data={},url="#",options={},cache=[])=>
+  populateEmbed:(data={},url="#",options={},cache=[])->
     @setEmbedData data
     @setEmbedURL url
     @setEmbedCache cache unless cache is []

    @setEmbedHiddenItems []
    @setEmbedImageIndex 0

  clearEmbed:=>
    # here them embed can be prepared for population
    # @$("div.embed").html ""

  clearEmbedAndHide:=>
    @clearEmbed()
    @hide()


    else
      @embedData

  getEmbedURL:->
    @embedURL

  getEmbedCache:->
    @embedCache

  getEmbedImageIndex:->
    @embedImageIndex

  getEmbedHiddenItems:->
    @embedHiddenItems

  setEmbedCache:(cache)->
    unless @embedCache? then @embedCache = []
    for item in cache
      unless item in @embedCache
