X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fdimensions.js;h=26c40c3d180dca898ca943712cd2ad957d28d728;hb=6541eb9d80db42c6ced396fcd198228bff9ec7f1;hp=698f5f4b03698cecb6468fd2554fe54bf407ff4b;hpb=51d258074cf4cbb6e8c57361c421494220a65cb1;p=jquery.git diff --git a/src/dimensions.js b/src/dimensions.js index 698f5f4..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, "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, margin ? "margin" : "border" ), 10 ) : + parseFloat( jQuery.css( this[0], type, margin ? "margin" : "border" ), 10 ) : null; };