aboutsummaryrefslogtreecommitdiffstats
path: root/src/dimensions.js
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-05-13 01:45:58 +0000
committerAriel Flesler <aflesler@gmail.com>2008-05-13 01:45:58 +0000
commit3f5ff3097c315456fe92c9b1e4578590e1eb8648 (patch)
treefebb88f43ac00ffd84f47b661696f1d85656b877 /src/dimensions.js
parent20a7bff4019a93fd7cee04897effd49af8be4de4 (diff)
downloadjquery-3f5ff3097c315456fe92c9b1e4578590e1eb8648.tar.gz
jquery-3f5ff3097c315456fe92c9b1e4578590e1eb8648.zip
jquery: removing unnecessary trailing and leading spaces & tabs.
Diffstat (limited to 'src/dimensions.js')
-rw-r--r--src/dimensions.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dimensions.js b/src/dimensions.js
index f052b5505..42e3f1d63 100644
--- a/src/dimensions.js
+++ b/src/dimensions.js
@@ -3,23 +3,23 @@ jQuery.each([ "Height", "Width" ], function(i, name){
var tl = name == "Height" ? "Top" : "Left", // top or left
br = name == "Height" ? "Bottom" : "Right"; // bottom or right
-
+
// innerHeight and innerWidth
jQuery.fn["inner" + name] = function(){
- return this[ name.toLowerCase() ]() +
- num(this, "padding" + tl) +
+ return this[ name.toLowerCase() ]() +
+ num(this, "padding" + tl) +
num(this, "padding" + br);
};
-
+
// outerHeight and outerWidth
jQuery.fn["outer" + name] = function(margin) {
- return this["inner" + name]() +
+ return this["inner" + name]() +
num(this, "border" + tl + "Width") +
num(this, "border" + br + "Width") +
- (!!margin ?
+ (!!margin ?
num(this, "margin" + tl) + num(this, "margin" + br) : 0);
};
-
+
});
function num(elem, prop) {