spark_components 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spark_components/element.rb +2 -1
- data/lib/spark_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f46f7deb1b2f66de32843565d17a4e3021901e0cb0fdf3b231ccf148e053151
|
4
|
+
data.tar.gz: 1d7b1189052c480e87018deae07426a170ab97e51607089fc81d495dd21e12d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5c363ac58ca543540c673618e334159b0b5a2d8f8e062145802e74ad453b0a3c784e95285ebdd17e19be12c6e49446ad933f1def829a1655a92925e56d0d316
|
7
|
+
data.tar.gz: 4fc740749a6367df09d0efb8a9137a27095dab9471758206a99a0fffcdff6bff319c3e070eb62b01b75330e965b79df36275d5dc8108936581c684854b0b73ac
|
@@ -142,6 +142,7 @@ module SparkComponents
|
|
142
142
|
assign_tag_attributes(attributes)
|
143
143
|
initialize_attributes(attributes)
|
144
144
|
initialize_elements
|
145
|
+
extend_view_methods
|
145
146
|
after_init
|
146
147
|
@yield = block_given? ? @view.capture(self, &block) : nil
|
147
148
|
validate!
|
@@ -256,7 +257,7 @@ module SparkComponents
|
|
256
257
|
|
257
258
|
def extend_view_methods
|
258
259
|
view_methods.each do |name|
|
259
|
-
next
|
260
|
+
next if respond_to?(name) || !@view.respond_to?(name)
|
260
261
|
|
261
262
|
self.class.define_method(name) do |*args, &block|
|
262
263
|
@view.send(name, *args, &block)
|