kono_utils 0.15.12 → 0.15.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c989fde2a18bae206a3db073e72f5ea78dbe450
4
- data.tar.gz: 7f4793f9dc78c6b880a7216d55d1e0a32487a5d0
3
+ metadata.gz: 4651457d4dd8be87258a479aa5e7d68d25fc3b3c
4
+ data.tar.gz: a39ccc7c7f7cc89da2a9c9337eefca983c1e8565
5
5
  SHA512:
6
- metadata.gz: 2e0a5c77c35aac14545ac1044236512100504b1b8b3c89149fedd256c226cea27032796b701e6b6cdff6cad12577fc665aa51ef7b4c4ccb9051fe481b81a629b
7
- data.tar.gz: 9e305100f12371c412dce8b6153308a6f58606d122efdd75b7b1f0a9c284af91b87be8d7422c1b478e9e25b1411e71102f98ed73c95f74f5bcd5b0595c030e6f
6
+ metadata.gz: b0bf9dfcd9e9a8ad4ee0a6aa6096370a99b83442c4a7ad89d8ddc4d13ea4e13c08b780ea29e5f1c36067db60b58023e4183f435e565970fe1d122f51d7b29b1f
7
+ data.tar.gz: 9e137d54549eeab8f1fa9e11eea558aa081eb62ae25b8a80aedb71c4d8839b3faf7cffbbdd5ae33cf07b35a669cfae148eab2db8aae1a58c3876a5eeabfeef59
@@ -40,13 +40,21 @@
40
40
 
41
41
  ###
42
42
  @Kn.view_ns = (selector, block) ->
43
- $ ->
43
+ #funzione da lanciare per il reload della pagina
44
+ esecutore = _.debounce(->
45
+ #se abbiamo il selettore allora lancio il blocco
44
46
  if $(selector).length > 0
45
47
  block(selector)
46
- else
47
- # attacco ascoltatore event haschanged
48
- $(window).on 'hashchange', ->
49
- block(selector)
48
+ , 10, true)
49
+ #on ready
50
+ $ ->
51
+ esecutore()
52
+
53
+ #attacco ascoltatore event haschanged
54
+ $(window).on 'hashchange', esecutore
55
+
56
+ #Attacco evento anche per turbolinks
57
+ document.addEventListener("turbolinks:load", esecutore)
50
58
 
51
59
 
52
60
  ###
@@ -1,3 +1,3 @@
1
1
  module KonoUtils
2
- VERSION = '0.15.12'
2
+ VERSION = '0.15.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kono_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.12
4
+ version: 0.15.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-16 00:00:00.000000000 Z
11
+ date: 2018-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview