Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit d88afd7

Browse files
committed
[opal-0.9] Fix DSL spec
define_method define a duplicated “para” method which got the wrong one pickuped by opal 0.9
1 parent 5330f23 commit d88afd7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/react/rendering_context.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ def self.remove_nodes_from_args(args)
8585
end
8686

8787
class ::Object
88-
alias_method :old_method_missing, :method_missing
8988

90-
["span", "para", "td", "th", "while_loading"].each do |tag|
89+
["span", "td", "th", "while_loading"].each do |tag|
9190
define_method(tag) do | *args, &block |
9291
args.unshift(tag)
9392
return self.method_missing(*args, &block) if self.is_a? React::Component

0 commit comments

Comments
 (0)