diff options
author | John Resig <jeresig@gmail.com> | 2007-03-16 04:32:37 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-03-16 04:32:37 +0000 |
commit | ab2d10c6d62c4d2b834337e238cf2a618eec4412 (patch) | |
tree | 1577843e672f75e0b6829d11cc5c052b1330f882 /src/jquery/jquery.js | |
parent | 8613d9a93ac424ee5c60ba6f69751e93a2d179c6 (diff) | |
download | jquery-ab2d10c6d62c4d2b834337e238cf2a618eec4412.tar.gz jquery-ab2d10c6d62c4d2b834337e238cf2a618eec4412.zip |
Removed some un-needed code from css() and fixed a bug with how Safari handles childNodes in makeArray.
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r-- | src/jquery/jquery.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index e81b82b51..061d86c89 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1540,11 +1540,6 @@ jQuery.extend({ return elem.filter ? parseFloat( elem.filter.match(/alpha\(opacity=(.*)\)/)[1] ) / 100 : 1; - // Mozilla doesn't play well with opacity 1 - if ( name == "opacity" && jQuery.browser.mozilla && value == 1 ) - value = 0.9999; - - // Certain attributes only work when accessed via the old DOM 0 way if ( fix[name] ) { if ( value != undefined ) elem[fix[name]] = value; @@ -1586,7 +1581,8 @@ jQuery.extend({ makeArray: function( a ) { var r = []; - if ( a.constructor != Array ) + // Need to use typeof to fight Safari childNodes crashes + if ( typeof a != "array" ) for ( var i = 0, al = a.length; i < al; i++ ) r.push( a[i] ); else |