aboutsummaryrefslogtreecommitdiffstats
path: root/src/dimensions.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-09-17 14:41:28 -0400
committerJohn Resig <jeresig@gmail.com>2010-09-17 14:41:28 -0400
commit6541eb9d80db42c6ced396fcd198228bff9ec7f1 (patch)
treefcd0543811ff1bf24cc99e9ef2718a7f630bc2fe /src/dimensions.js
parent51d258074cf4cbb6e8c57361c421494220a65cb1 (diff)
downloadjquery-6541eb9d80db42c6ced396fcd198228bff9ec7f1.tar.gz
jquery-6541eb9d80db42c6ced396fcd198228bff9ec7f1.zip
Cleaning up some un-needed CSS code and adding back a temporary (deprecated) curCSS method.
Diffstat (limited to 'src/dimensions.js')
-rw-r--r--src/dimensions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dimensions.js b/src/dimensions.js
index 698f5f4b0..26c40c3d1 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;
};