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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8ad2ce74849b3464547f81d82aea9cf68fc5aa
|
4
|
+
data.tar.gz: 785b2d7f1001875d202aa57b6cbd0923001c0067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
218
|
+
else if !TurboGraft.hasTGAttribute(existingNode, "refresh-always")
|
219
219
|
removeNode(existingNode)
|
220
220
|
|
221
221
|
refreshedNodes
|
data/lib/turbograft/version.rb
CHANGED
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.
|
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-
|
16
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: coffee-rails
|