wedge 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge/component.rb +10 -7
- data/lib/wedge/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: 5f75ef1fe6f4a169ee2f5153b5d3f94b7727a645
|
4
|
+
data.tar.gz: 50c70053661c1a3f339e8581018e07415966725f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 012e945492c2e5506feecf78714ce069e6b5acc6bfd1054c66d87fbeb3863f30715d8f10361b5e5a88a4fabbc1f2eabf621b38f437ba5a02b1e6a18b35d78c68
|
7
|
+
data.tar.gz: 6fe07fc66016901fd9d42d0068e3fb0e4df861513c431af19d52fbe96ed911b6af2847bf5c2f99c6edcf14445aeaf300aa37d4ff68276abbdd0754c4cd56ea87
|
data/lib/wedge/component.rb
CHANGED
@@ -33,7 +33,8 @@ module Wedge
|
|
33
33
|
obj.send :initialize, &block
|
34
34
|
end
|
35
35
|
|
36
|
-
|
36
|
+
# don't need to wrap the method if it's opal
|
37
|
+
unless RUBY_ENGINE == 'opal' || wedge_opts.methods_wrapped
|
37
38
|
obj.wedge_opts.methods_wrapped = wedge_opts.methods_wrapped = true
|
38
39
|
|
39
40
|
public_instance_methods(false).each do |meth|
|
@@ -60,9 +61,7 @@ module Wedge
|
|
60
61
|
|
61
62
|
result
|
62
63
|
end
|
63
|
-
|
64
|
-
# super still work when re-defining the method
|
65
|
-
end unless obj.wedge_opts.name[/_form$/]
|
64
|
+
end
|
66
65
|
end
|
67
66
|
|
68
67
|
if obj.wedge_opts.call
|
@@ -339,9 +338,13 @@ module Wedge
|
|
339
338
|
alias_method :trigger, :wedge_trigger
|
340
339
|
|
341
340
|
def wedge_super *args, &block
|
342
|
-
|
343
|
-
|
344
|
-
|
341
|
+
if server?
|
342
|
+
caller_str = "#{caller[0]}"
|
343
|
+
calling_method = (caller_str =~ /`([^']*)'/ and $1)
|
344
|
+
self.class.superclass.instance_method(:"wedge_original_#{calling_method}").bind(self).call(*args, &block)
|
345
|
+
else
|
346
|
+
super *args, &block
|
347
|
+
end
|
345
348
|
end
|
346
349
|
|
347
350
|
if RUBY_ENGINE == 'opal'
|
data/lib/wedge/version.rb
CHANGED