roda-component 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/lib/roda/component/dom.rb +2 -4
- data/lib/roda/component/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5adcbdffd9a69ae90810e945c39692c7b1a21c7f
|
4
|
+
data.tar.gz: 6e3c8b53a75ba2ef5cb47e74a3beb4a7054876e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c421253385cc606445f7062c74e7bd7234bb40131a838cd27ca583eba85868fd52a8f071f45a16c828a5586caeefea9c8b2fc97477a4f9e3f3e38418e08558a1
|
7
|
+
data.tar.gz: d7984354ed23c325c92f32e0ddd29dfea396813f33ed205acfe691fab95e8bb7fd6e5ad7ba747eef7f8df12d04be26b41906bb87d948f9ac573c96510b64c205
|
data/Gemfile
CHANGED
data/lib/roda/component/dom.rb
CHANGED
@@ -33,8 +33,8 @@ class Roda
|
|
33
33
|
node
|
34
34
|
end
|
35
35
|
|
36
|
-
|
37
|
-
|
36
|
+
unless RUBY_ENGINE == 'opal'
|
37
|
+
def data key = false, value = false
|
38
38
|
d = Hash[node.xpath("@*[starts-with(name(), 'data-')]").map{|a| [a.name, a.value]}]
|
39
39
|
|
40
40
|
if !key
|
@@ -44,8 +44,6 @@ class Roda
|
|
44
44
|
else
|
45
45
|
node["data-#{key}"] = value
|
46
46
|
end
|
47
|
-
else
|
48
|
-
super
|
49
47
|
end
|
50
48
|
end
|
51
49
|
|