mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added overflow fix.
This commit is contained in:
parent
f4c67b7c5a
commit
4737936c0b
8
jquery/jquery.js
vendored
8
jquery/jquery.js
vendored
@ -61,7 +61,7 @@ function jQuery(a,c) {
|
|||||||
if ( m ) a = jQuery.clean( [ m[1] ] );
|
if ( m ) a = jQuery.clean( [ m[1] ] );
|
||||||
|
|
||||||
// Watch for when an array is passed in
|
// Watch for when an array is passed in
|
||||||
this.get( a.constructor == Array || a.length && a[0].nodeType ?
|
this.get( a.constructor == Array || a.length && a[0] != undefined && a[0].nodeType ?
|
||||||
// Assume that it's an array of DOM Elements
|
// Assume that it's an array of DOM Elements
|
||||||
jQuery.merge( a, [] ) :
|
jQuery.merge( a, [] ) :
|
||||||
|
|
||||||
@ -1107,7 +1107,7 @@ new function() {
|
|||||||
this.length ? this[0][n] : null :
|
this.length ? this[0][n] : null :
|
||||||
this.attr( n, h );
|
this.attr( n, h );
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
var css = "width,height,top,left,position,float,overflow,color,background".split(",");
|
var css = "width,height,top,left,position,float,overflow,color,background".split(",");
|
||||||
|
|
||||||
@ -1115,10 +1115,10 @@ new function() {
|
|||||||
var n = css[i];
|
var n = css[i];
|
||||||
jQuery.fn[ i ] = function(h) {
|
jQuery.fn[ i ] = function(h) {
|
||||||
return h == undefined ?
|
return h == undefined ?
|
||||||
this.length ? jQuery.css( this[0], n ) : null :
|
( this.length ? jQuery.css( this[0], n ) : null ) :
|
||||||
this.css( n, h );
|
this.css( n, h );
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user