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/attributes/classes.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/attributes/classes.js')
-rw-r--r-- | src/attributes/classes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attributes/classes.js b/src/attributes/classes.js index e020aa5cf..dcd8ad059 100644 --- a/src/attributes/classes.js +++ b/src/attributes/classes.js @@ -155,8 +155,8 @@ jQuery.fn.extend( { if ( this.setAttribute ) { this.setAttribute( "class", className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" + "" : + dataPriv.get( this, "__className__" ) || "" ); } } @@ -171,7 +171,7 @@ jQuery.fn.extend( { while ( ( elem = this[ i++ ] ) ) { if ( elem.nodeType === 1 && ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; + return true; } } |