Skip to content

Commit

Permalink
dom/element: fix specialization lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Feb 24, 2014
1 parent 2cfd6c5 commit 15ed6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/browser/dom/element.rb
Expand Up @@ -20,7 +20,7 @@ def self.new(node)
if self == Element
name = `node.nodeName`.capitalize

if Element.const_defined?(name)
if Element.constants.include?(name)
Element.const_get(name).new(node)
else
super
Expand Down

0 comments on commit 15ed6cd

Please sign in to comment.