Sha256: da8e921594f2877cd2d4e8a455294b095543b2681a22db978bee4e71d8c11cf7
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
#= require ./assethost #= require underscore.min #= require spin.jquery #= require spin.min #= require_self #= require_directory ./clients/templates #= require_directory ./clients class AssetHost.Client DefaultOptions: attr: "data-assethost" constructor: (options={}) -> @options = _.defaults options, @DefaultOptions @clients = [] clients = @clients $ => ahAttr = @options.attr # find all assethost elements and look for rich functionality $("img[#{@options.attr}]").each -> rich = $(this).attr ahAttr if Client[rich] clients.push new Client[rich](this)
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/client.js.coffee |