X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdimensions.js;fp=src%2Fdimensions.js;h=698f5f4b03698cecb6468fd2554fe54bf407ff4b;hb=37b607d2815b893d13de4ac3461090d0dd46535e;hp=d3561e822e860f402500d47a5b354318f63a9603;hpb=2131e1a7ad6d9df239ec00b301303e10dbd34d49;p=jquery.git diff --git a/src/dimensions.js b/src/dimensions.js index d3561e8..698f5f4 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -8,14 +8,14 @@ jQuery.each([ "Height", "Width" ], function( i, name ) { // innerHeight and innerWidth jQuery.fn["inner" + name] = function() { return this[0] ? - parseFloat( jQuery.css( this[0], type, undefined, false, "padding" ), 10 ) : + parseFloat( jQuery.css( this[0], type, undefined, "padding" ), 10 ) : null; }; // outerHeight and outerWidth jQuery.fn["outer" + name] = function( margin ) { return this[0] ? - parseFloat( jQuery.css( this[0], type, undefined, false, margin ? "margin" : "border" ), 10 ) : + parseFloat( jQuery.css( this[0], type, undefined, margin ? "margin" : "border" ), 10 ) : null; };