X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdimensions.js;h=26c40c3d180dca898ca943712cd2ad957d28d728;hb=6541eb9d80db42c6ced396fcd198228bff9ec7f1;hp=d3561e822e860f402500d47a5b354318f63a9603;hpb=cb3a9c14f1d69a60777a887a7807d7d11c5cb0a1;p=jquery.git diff --git a/src/dimensions.js b/src/dimensions.js index d3561e8..26c40c3 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, "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, margin ? "margin" : "border" ), 10 ) : null; };