Sha256: 2898a44a894b7c6187c00c6ed49bf0f93a2cc191503b450293b6c5fa44e3d249
Contents?: true
Size: 894 Bytes
Versions: 1
Compression:
Stored size: 894 Bytes
Contents
class @SharingTags.Share.Callback constructor: (@share)-> @network = @share.network @context = @share.context before_share: (provider)=> @trigger("before_share", provider: provider) success_share: (response)-> @trigger("success_share", response: response) cancel_share: (response)-> @trigger("cancel_share", response: response) after_share: (response)-> @trigger("after_share", response: response) open_popup: (open_url, popup_window)=> @trigger("open_popup", url: open_url, popup_window: popup_window) trigger: (trigger_name, params...)-> trigger_params = @_share_params(params) jQuery?(window).trigger("sharing_tags.#{trigger_name}", [trigger_params]) _share_params: (params)-> properties = { url: @share.url network: @network context: @context } params[key] = val for key, val of properties params
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sharing_tags-0.0.16 | app/assets/javascripts/sharing_tags/share/callback.js.coffee |