Build: Update eslint config and fix associated errors

This commit is contained in:
Oleg Gaidarenko
2016-07-15 21:42:25 +04:00
committed by GitHub
parent 96966c0220
commit e4fd41f8fa
15 changed files with 135 additions and 73 deletions

View File

@@ -53,13 +53,16 @@ var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
}
}
return chainable ?
elems :
if ( chainable ) {
return elems;
}
// Gets
bulk ?
fn.call( elems ) :
len ? fn( elems[ 0 ], key ) : emptyGet;
// Gets
if ( bulk ) {
return fn.call( elems );
}
return len ? fn( elems[ 0 ], key ) : emptyGet;
};
return access;