Skip to content

Commit

Permalink
dom/element: fix #css on IE6-7
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Feb 1, 2014
1 parent afd43f6 commit 94492ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/browser/dom/element.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def css(path)
end
elsif Browser.loaded? 'Sizzle'
def css(path)
NodeSet.new(`Sizzle(path, #@native)`)
NodeSet[`Sizzle(path, #@native)`.map { |x| Native(x) }]
rescue
NodeSet[]
end
Expand Down

0 comments on commit 94492ff

Please sign in to comment.