aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-11-09 11:09:07 -0500
committerJohn Resig <jeresig@gmail.com>2010-11-09 11:09:07 -0500
commitfb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c (patch)
tree150abf047642cb0f1e8af19f1c3d0237fe07f9ff /src/css.js
parentb5b3c73db3e4e615e504cd0af08ff6842b104542 (diff)
downloadjquery-fb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c.tar.gz
jquery-fb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c.zip
Make sure that when multiple variables are being declared that assignments are each done on their own line.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js
index 1fbee3f47..4665fa7cb 100644
--- a/src/css.js
+++ b/src/css.js
@@ -258,7 +258,9 @@ if ( document.defaultView && document.defaultView.getComputedStyle ) {
if ( document.documentElement.currentStyle ) {
currentStyle = function( elem, name ) {
- var left, rsLeft, ret = elem.currentStyle && elem.currentStyle[ name ], style = elem.style;
+ var left, rsLeft,
+ ret = elem.currentStyle && elem.currentStyle[ name ],
+ style = elem.style;
// From the awesome hack by Dean Edwards
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
@@ -312,7 +314,8 @@ function getWH( elem, name, extra ) {
if ( jQuery.expr && jQuery.expr.filters ) {
jQuery.expr.filters.hidden = function( elem ) {
- var width = elem.offsetWidth, height = elem.offsetHeight;
+ var width = elem.offsetWidth,
+ height = elem.offsetHeight;
return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
};