aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorWonseop Kim <wonseop.kim@samsung.com>2020-05-05 17:49:27 +0900
committerGitHub <noreply@github.com>2020-05-05 10:49:27 +0200
commit3d62d5704989f17d3a20ae7521d52e9c8c60b4ee (patch)
treee65bc1fe0f602abb63c9de17f75ab85524a35f61 /src/core
parent11066a9e6ac183dd710d1bc7aa74a3f809757136 (diff)
downloadjquery-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/core')
-rw-r--r--src/core/access.js4
-rw-r--r--src/core/nodeName.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/access.js b/src/core/access.js
index 4eaec4695..6b717b9ba 100644
--- a/src/core/access.js
+++ b/src/core/access.js
@@ -43,8 +43,8 @@ var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
for ( ; i < len; i++ ) {
fn(
elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
+ value :
+ value.call( elems[ i ], i, fn( elems[ i ], key ) )
);
}
}
diff --git a/src/core/nodeName.js b/src/core/nodeName.js
index d10e484bc..7d38916b7 100644
--- a/src/core/nodeName.js
+++ b/src/core/nodeName.js
@@ -1,6 +1,6 @@
function nodeName( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
+ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
};