reactive-ruby 0.7.20 → 0.7.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactive-ruby/component.rb +6 -4
- data/lib/reactive-ruby/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: ba020e5e9862a19e8d282dc496e6f2d4d333b95d
|
4
|
+
data.tar.gz: 1a22aab3bf6c5b1d2dd0f3c9d6476e70ee4a4725
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82f5d964eafb7dc65e5738af32fa53411a05be1f23fcb66dca829d33b60b039a920b69c8b2f5f024d3cbb2bf3c244db93b649e3789944fb9b46f625b5c54a11d
|
7
|
+
data.tar.gz: 4d333c0118ff987bc17e24a24dd0269bd02906c1656b2132cf1e892996ce792208ffc090cb2e0f4dd224e27c1711315e7aa37aaff65bd35c296b5c3fa5cb9ae9
|
@@ -73,7 +73,12 @@ module React
|
|
73
73
|
node_only = true
|
74
74
|
name = name.gsub(/_as_node$/, "")
|
75
75
|
end
|
76
|
-
|
76
|
+
begin
|
77
|
+
name = const_get(name)
|
78
|
+
rescue Exception
|
79
|
+
name = nil
|
80
|
+
end
|
81
|
+
unless name and name.method_defined? :render
|
77
82
|
return super
|
78
83
|
end
|
79
84
|
if node_only
|
@@ -81,9 +86,6 @@ module React
|
|
81
86
|
else
|
82
87
|
React::RenderingContext.render(name, *args, &block)
|
83
88
|
end
|
84
|
-
rescue Exception => e
|
85
|
-
message = "#{base.name}.#{n} method_missing handler exception raised: #{e}" rescue nil
|
86
|
-
`console.error(#{message})` rescue nil
|
87
89
|
end
|
88
90
|
|
89
91
|
end
|