Sha256: bed21126853c730c5304a227c8f85d0b5195a9ec438564221c59d743f8bb77da

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

class @SharingTags.Share.Callback
  constructor: (@share)->

  before_sharing: (provider)=>
    @trigger("start_share", url: @share.url, provider: provider)

  after_sharing: ->
    @trigger("shared")

  before_open_popup: (open_url, popup_window)=>
    @trigger("open_popup", url: open_url, popup_window: popup_window)

  trigger: (trigger_name, params...)->
    jQuery?(window).trigger("sharing_tags.#{trigger_name}", params)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sharing_tags-0.0.13 app/assets/javascripts/sharing_tags/share/callback.js.coffee
sharing_tags-0.0.12 app/assets/javascripts/sharing_tags/share/callback.js.coffee
sharing_tags-0.0.11 app/assets/javascripts/sharing_tags/share/callback.js.coffee
sharing_tags-0.0.10 app/assets/javascripts/sharing_tags/share/callback.js.coffee