Removed some un-needed code from css() and fixed a bug with how Safari handles childNodes in makeArray.
This commit is contained in:
parent
8613d9a93a
commit
ab2d10c6d6
1 changed files with 2 additions and 6 deletions
8
src/jquery/jquery.js
vendored
8
src/jquery/jquery.js
vendored
|
@ -1540,11 +1540,6 @@ jQuery.extend({
|
||||||
return elem.filter ?
|
return elem.filter ?
|
||||||
parseFloat( elem.filter.match(/alpha\(opacity=(.*)\)/)[1] ) / 100 : 1;
|
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
|
// Certain attributes only work when accessed via the old DOM 0 way
|
||||||
if ( fix[name] ) {
|
if ( fix[name] ) {
|
||||||
if ( value != undefined ) elem[fix[name]] = value;
|
if ( value != undefined ) elem[fix[name]] = value;
|
||||||
|
@ -1586,7 +1581,8 @@ jQuery.extend({
|
||||||
makeArray: function( a ) {
|
makeArray: function( a ) {
|
||||||
var r = [];
|
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++ )
|
for ( var i = 0, al = a.length; i < al; i++ )
|
||||||
r.push( a[i] );
|
r.push( a[i] );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue