diff options
author | jeresig <jeresig@gmail.com> | 2009-12-21 19:58:13 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-21 19:58:13 -0500 |
commit | 61e37d41490aed319a176c6ca7feb95e5505059c (patch) | |
tree | 62b7c9bbb5cba5f15c2a134a51dac84b35e0d0ce /src/dimensions.js | |
parent | 36c99dc0c7a745a88488f519b38de811d6d4c8d9 (diff) | |
download | jquery-61e37d41490aed319a176c6ca7feb95e5505059c.tar.gz jquery-61e37d41490aed319a176c6ca7feb95e5505059c.zip |
Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline.
Diffstat (limited to 'src/dimensions.js')
-rw-r--r-- | src/dimensions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dimensions.js b/src/dimensions.js index d3c8418db..3acbb1d76 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -1,17 +1,17 @@ // Create innerHeight, innerWidth, outerHeight and outerWidth methods -jQuery.each([ "Height", "Width" ], function(i, name){ +jQuery.each([ "Height", "Width" ], function( i, name ) { var type = name.toLowerCase(); // innerHeight and innerWidth - jQuery.fn["inner" + name] = function(){ + jQuery.fn["inner" + name] = function() { return this[0] ? jQuery.css( this[0], type, false, "padding" ) : null; }; // outerHeight and outerWidth - jQuery.fn["outer" + name] = function(margin) { + jQuery.fn["outer" + name] = function( margin ) { return this[0] ? jQuery.css( this[0], type, false, margin ? "margin" : "border" ) : null; |