dominate 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dominate/version.rb +1 -1
- data/lib/dominate/widget.rb +4 -4
- 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: e395d2086436cdb2ce8e73ff7e8b4ff3bdb33975
|
4
|
+
data.tar.gz: 97061dbbb9e56558721bc9cd3266aec83b15c14b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d5f41678d8ff7d2fc9ccf22a72eb62d728696443f9d1bae8cc1c9866e2b80279e5bd757a04e410cfcf4ce78ea43fcde1c2ab2d56a1b636556649b19abe2293b
|
7
|
+
data.tar.gz: af47481108af632da963b17ea4fe7ba30bc62f11a9055e655e9029a5f8af6391ee43db5b80743675b18249cff7198fe8fe804d54fb4da437bc9e953639d72413
|
data/lib/dominate/version.rb
CHANGED
data/lib/dominate/widget.rb
CHANGED
@@ -17,15 +17,15 @@ module Dominate
|
|
17
17
|
@event = event
|
18
18
|
@widget_state = false
|
19
19
|
|
20
|
+
self.instance_variables.each do |n|
|
21
|
+
app.instance_variable_set n, self.instance_variable_get(n)
|
22
|
+
end
|
23
|
+
|
20
24
|
event.add_observer self, :trigger_event
|
21
25
|
end
|
22
26
|
|
23
27
|
def method_missing method, *args, &block
|
24
28
|
if app.respond_to? method
|
25
|
-
self.instance_variables.each do |name|
|
26
|
-
app.instance_variable_set name, self.instance_variable_get(name)
|
27
|
-
end
|
28
|
-
|
29
29
|
app.send method, *args, &block
|
30
30
|
else
|
31
31
|
super
|