aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/offset.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/offset.js b/src/offset.js
index 4cd58cf7f..010c57d19 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -111,15 +111,12 @@ jQuery.each(["Height", "Width"], function(i, name){
};
// outerHeight and outerWidth
- jQuery.fn["outer" + name] = function(options) {
- options = jQuery.extend({ margin: false }, options);
-
+ jQuery.fn["outer" + name] = function(margin) {
return this["inner" + name]() +
num(this, "border" + tl + "Width") +
num(this, "border" + br + "Width") +
- (options.margin ?
- num(this, "margin" + tl) + num(this, "margin" + br) :
- 0);
+ (!!margin ?
+ num(this, "margin" + tl) + num(this, "margin" + br) : 0);
};
});