Skip to content
Permalink
Browse files
Added overflow fix.
  • Loading branch information
jeresig committed Jul 16, 2006
1 parent f4c67b7 commit 4737936
Showing 1 changed file with 7 additions and 7 deletions.
@@ -61,7 +61,7 @@ function jQuery(a,c) {
if ( m ) a = jQuery.clean( [ m[1] ] );

// 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
jQuery.merge( a, [] ) :

@@ -1107,18 +1107,18 @@ new function() {
this.length ? this[0][n] : null :
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(",");

for ( var i in css ) new function() {
var n = css[i];
jQuery.fn[ i ] = function(h) {
return h == undefined ?
this.length ? jQuery.css( this[0], n ) : null :
( this.length ? jQuery.css( this[0], n ) : null ) :
this.css( n, h );
};
}
};

}

0 comments on commit 4737936

Please sign in to comment.