X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=924bf965e3b4e71e433b0d83a753273eefe7c5cd;hb=d1210a5a88ee435b0f46918d03852cf2f8469ca9;hp=6255dc5a4ddd932104cb28fbf2ca91d002fc0d6a;hpb=201f1b66cc4fe86ea08d118ce15d831c6561cc8c;p=jquery.git diff --git a/src/core.js b/src/core.js index 6255dc5..924bf96 100644 --- a/src/core.js +++ b/src/core.js @@ -1358,7 +1358,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){ // Get or set width or height on the element size == undefined ? // Get width or height on the element - (this.length ? num( this, type) : null) : + (this.length ? jQuery.css( this[0], type ) : null) : // Set the width or height on the element (default to pixels if value is unitless) this.css( type, size.constructor == String ? size : size + "px" );