diff options
author | Wonseop Kim <wonseop.kim@samsung.com> | 2020-05-05 17:49:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 10:49:27 +0200 |
commit | 3d62d5704989f17d3a20ae7521d52e9c8c60b4ee (patch) | |
tree | e65bc1fe0f602abb63c9de17f75ab85524a35f61 /src/css.js | |
parent | 11066a9e6ac183dd710d1bc7aa74a3f809757136 (diff) | |
download | jquery-3d62d5704989f17d3a20ae7521d52e9c8c60b4ee.tar.gz jquery-3d62d5704989f17d3a20ae7521d52e9c8c60b4ee.zip |
Build: Correct code indentations based on jQuery Style Guide
1. Correct code indentations based on jQuery Style Guide
(contribute.jquery.org/style-guide/js/#spacing).
2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent
indentation", with minimal changes to the current code.
Closes gh-4672
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/css.js b/src/css.js index 2bffa9610..8c4070c71 100644 --- a/src/css.js +++ b/src/css.js @@ -320,10 +320,10 @@ jQuery.each( [ "height", "width" ], function( _i, dimension ) { // Running getBoundingClientRect on a disconnected node // in IE throws an error. ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, dimension, extra ); - } ) : - getWidthOrHeight( elem, dimension, extra ); + swap( elem, cssShow, function() { + return getWidthOrHeight( elem, dimension, extra ); + } ) : + getWidthOrHeight( elem, dimension, extra ); } }, |