Sha256: d8911c1e5be3cc0168362df76125bd61e9e7c3b720034e59a6fd71eb704e62fa

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

class AssetHost.Client.VimeoVideo
    template: JST['asset_host_core/clients/templates/vimeo_embed']

    constructor: (el, options={}) ->
        @el   = $(el)

        # get videoid from data-ah-videoid attribute
        @videoid = @el.attr("data-ah-videoid")

        $(document).ready =>
            @launch()

    #----------

    launch: ->
        # render template
        @html = @template(videoid: @videoid)
        @swap()

    swap: ->
        @el.replaceWith @html

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asset_host_core-2.0.0.beta app/assets/javascripts/asset_host_core/clients/vimeo_video.js.coffee