sharing_tags 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb73d93fba7ee64fa8cb099f06c5ea6a4710ab49
4
- data.tar.gz: e5f430b5a32be565d28a2ae35e0a37a02652a441
3
+ metadata.gz: 34d49019fab0798e3030b86fc2fffcc5a4ba25b1
4
+ data.tar.gz: 53f1a79c673cd24558335eea521e82f9333f9484
5
5
  SHA512:
6
- metadata.gz: f364f946bda666597a66e2e9e02d67ebbcef6f7f828c22945c9574b15b636365c748fa69840b45b1f60a32db2ba6fd22a829ad1ebab01f693eb3ec880f4012c4
7
- data.tar.gz: acba60164c6bc8e27aef1ee7690558ce35d3a7a6d40bc97f0fb37c3c7972eae2baf7d5ceac407f26eed315339dd8c2cbb75ce9e36e1d3ec05f26301a0be060eb
6
+ metadata.gz: 045d25bcc8e5aae07c37bd84e689830251291da5ace9881c2c70c310ca42f16686782f5369c9d0c083aaac631d362457fbb338735a85e5dc21e77be2a3c6f321
7
+ data.tar.gz: 76033a838cf7a5987b94ec084779ff53efd554f19702da00c98a6236725b1166a67b92801e636638cd6806a6476da23c51dc6cb5b04e882ad74b3776491eec78
data/README.md CHANGED
@@ -105,27 +105,27 @@ You can subscribe to javascript events
105
105
 
106
106
  ```coffeescript
107
107
  # click on sharing link
108
- jQuery("body").on "sharing_tags.click_action", ({network, context, target})->
108
+ jQuery(document).on "sharing_tags.click_action", ({network, context, target})->
109
109
  # your code
110
110
 
111
111
  # on start sharing
112
- jQuery(window).on "sharing_tags.before_share", ({network, context, target})->
112
+ jQuery(document).on "sharing_tags.before_share", ({network, context, target})->
113
113
  # your code
114
114
 
115
115
  # on successful sharing
116
- jQuery(window).on "sharing_tags.success_share", ({network, context, target, response})->
116
+ jQuery(document).on "sharing_tags.success_share", ({network, context, target, response})->
117
117
  # your code
118
118
 
119
119
  # on cancel sharing
120
- jQuery(window).on "sharing_tags.cancel_share", ({network, context, target, response})->
120
+ jQuery(document).on "sharing_tags.cancel_share", ({network, context, target, response})->
121
121
  # your code
122
122
 
123
123
  # on success or cancel sharing
124
- jQuery(window).on "sharing_tags.after_share", ({network, context, target, response})->
124
+ jQuery(document).on "sharing_tags.after_share", ({network, context, target, response})->
125
125
  # your code
126
126
 
127
127
  # on open sharing popup
128
- jQuery(window).on "sharing_tags.open_popup", ({network, context, url, popup_window})->
128
+ jQuery(document).on "sharing_tags.open_popup", ({network, context, url, popup_window})->
129
129
  # your code
130
130
 
131
131
  ```
@@ -24,7 +24,6 @@ class @SharingTags.Share.Callback
24
24
  trigger: (trigger_name, params...)->
25
25
  params['type'] = "sharing_tags.#{trigger_name}"
26
26
  trigger_params = @_share_params(params)
27
- jQuery?(window).trigger(trigger_params)
28
27
  jQuery?(document).trigger(trigger_params)
29
28
 
30
29
  _share_params: (params)->
@@ -1,3 +1,3 @@
1
1
  module SharingTags
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharing_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoliy Kovalchuk