aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-07-15 21:42:25 +0400
committerGitHub <noreply@github.com>2016-07-15 21:42:25 +0400
commite4fd41f8fa4190fbbb6cb98cf7ace64f6e00685d (patch)
treec9957f8e6da0b814dfd11a5d1d61d969f7be4efd /src/core
parent96966c022079e3956018717136367fbf4ed548a2 (diff)
downloadjquery-e4fd41f8fa4190fbbb6cb98cf7ace64f6e00685d.tar.gz
jquery-e4fd41f8fa4190fbbb6cb98cf7ace64f6e00685d.zip
Build: Update eslint config and fix associated errors
Diffstat (limited to 'src/core')
-rw-r--r--src/core/access.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/core/access.js b/src/core/access.js
index 735c75711..86cdbc7e6 100644
--- a/src/core/access.js
+++ b/src/core/access.js
@@ -53,13 +53,16 @@ var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
}
}
- return chainable ?
- elems :
+ if ( chainable ) {
+ return elems;
+ }
+
+ // Gets
+ if ( bulk ) {
+ return fn.call( elems );
+ }
- // Gets
- bulk ?
- fn.call( elems ) :
- len ? fn( elems[ 0 ], key ) : emptyGet;
+ return len ? fn( elems[ 0 ], key ) : emptyGet;
};
return access;