Skip to content

Commit

Permalink
Drop the .valueOf in Native.try_convert, doesn't work in IE6
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Sep 30, 2013
1 parent ce5cd7e commit 3c5cb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/native.rb
Expand Up @@ -155,7 +155,7 @@ def self.is_a?(object, klass)
def self.try_convert(value)
%x{
if (#{native?(value)}) {
return #{value}.valueOf();
return #{value};
}
else if (#{value.respond_to? :to_n}) {
return #{value.to_n};
Expand Down

0 comments on commit 3c5cb19

Please sign in to comment.