aboutsummaryrefslogtreecommitdiffstats
path: root/src/dimensions.js
diff options
context:
space:
mode:
authorKarl Swedberg <karl@englishrules.com>2009-11-28 03:28:42 +0800
committerJohn Resig <jeresig@gmail.com>2009-11-28 04:09:14 +0800
commitddb86f8d5bd1bd21b2beeeea55baf505b47dfed5 (patch)
treec52314e46719d2b4fa9969fbebd1bd711c7d59ab /src/dimensions.js
parent1879e8cbeef6984495ee84f482900defda0dc3f4 (diff)
downloadjquery-ddb86f8d5bd1bd21b2beeeea55baf505b47dfed5.tar.gz
jquery-ddb86f8d5bd1bd21b2beeeea55baf505b47dfed5.zip
added curly braces around all if/else statements
Diffstat (limited to 'src/dimensions.js')
-rw-r--r--src/dimensions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dimensions.js b/src/dimensions.js
index a53254d54..3b74ded9b 100644
--- a/src/dimensions.js
+++ b/src/dimensions.js
@@ -20,7 +20,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){
jQuery.fn[ type ] = function( size ) {
// Get window width or height
var elem = this[0];
- if ( !elem ) return null;
+ if ( !elem ) { return null; }
return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window?
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||