turbograft 0.2.1 → 0.2.2

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: 2a50ca4a110827a3af168d5ff3647bc8fab4eba0
4
- data.tar.gz: d3ab55d748cdec883171f4b3d37bc54ab00ef7c0
3
+ metadata.gz: 6a8ad2ce74849b3464547f81d82aea9cf68fc5aa
4
+ data.tar.gz: 785b2d7f1001875d202aa57b6cbd0923001c0067
5
5
  SHA512:
6
- metadata.gz: 89c63f79978fb8052c060af6c089b404f10eafe4587b5c46c81d623199f1ac9477884636ac197e82076740eeeed00c28ffeb4f105d24e11132aaf3e80cea39da
7
- data.tar.gz: 0e4d0f808b6ff7637d3590169a7d7faeba7cbc28fe98ac7563e54a735238c8f7895c9d999c8b8b9d524075eb0fd803e6903149b3773789ad549c228aee2f7b33
6
+ metadata.gz: 2872fd9fa11d0f1e22ccc4eb90ce6f56fa79abfb9df6ebf9920d47a900d99a03bfc07f71e75324a26898471b364ae021ea7801deb45225d9a53e1b169bfa71e7
7
+ data.tar.gz: bb72bdfbbae7fdf3805a0ce5f68568896d71948f3f9b5257a1b9bbab89e0ea75fbec92a94ff10fefd59a88ce64c4c008d832eaaaaed49aa70c7846765b53fdaa
@@ -20,7 +20,7 @@ TurboGraft.removeTGAttribute = (node, attr) ->
20
20
 
21
21
  TurboGraft.hasTGAttribute = (node, attr) ->
22
22
  tgAttr = TurboGraft.tgAttribute(attr)
23
- node.getAttribute(tgAttr)? || node.getAttribute(attr)?
23
+ node.hasAttribute(tgAttr) || node.hasAttribute(attr)
24
24
 
25
25
  TurboGraft.querySelectorAllTGAttribute = (node, attr, value = null) ->
26
26
  tgAttr = TurboGraft.tgAttribute(attr)
@@ -215,7 +215,7 @@ class window.Turbolinks
215
215
  else
216
216
  refreshedNodes.push(newNode)
217
217
 
218
- else if TurboGraft.getTGAttribute(existingNode, "refresh-always") == null
218
+ else if !TurboGraft.hasTGAttribute(existingNode, "refresh-always")
219
219
  removeNode(existingNode)
220
220
 
221
221
  refreshedNodes
@@ -1,3 +1,3 @@
1
1
  module TurboGraft
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbograft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Plettenberg-Dussault
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-05-25 00:00:00.000000000 Z
16
+ date: 2016-06-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: coffee-rails