From 67886280f13a92168cda4808b700340da689aca7 Mon Sep 17 00:00:00 2001 From: Darren Waddell Date: Sat, 26 Dec 2009 13:47:30 +0000 Subject: [PATCH] formatting --- Compatibility/Element/Element.Dimensions.js | 29 +++++++++------------ 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/Compatibility/Element/Element.Dimensions.js b/Compatibility/Element/Element.Dimensions.js index a83f5eb86..8e5254df8 100644 --- a/Compatibility/Element/Element.Dimensions.js +++ b/Compatibility/Element/Element.Dimensions.js @@ -1,19 +1,16 @@ -(function(){ - - function isBody(element){ - return (/^(?:body|html)$/i).test(element.tagName); - }; +function isBody(element){ + return (/^(?:body|html)$/i).test(element.tagName); +}; - Element.implement({ +Element.implement({ - getSize: function(){ - var size = isBody(this) ? this.getWindow().getSize() : {x: this.offsetWidth, y: this.offsetHeight}; - return $merge(size, { - size: size, - scroll: this.getScroll(), - scrollSize: this.getScrollSize() - }) - } + getSize: function(){ + var size = isBody(this) ? this.getWindow().getSize() : {x: this.offsetWidth, y: this.offsetHeight}; + return $merge(size, { + size: size, + scroll: this.getScroll(), + scrollSize: this.getScrollSize() + }) + } - }); -}); \ No newline at end of file +}) \ No newline at end of file