diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2016-05-10 12:12:28 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2016-06-11 10:41:33 +0300 |
commit | 58c6ca9822afa42d3b40cca8edb0abe90a2bcb34 (patch) | |
tree | eb8c4c93031b4f0d88ffe5d58af7d58337c7b116 /src/attributes | |
parent | a4474c9a0025095f82d734a9d7230eace2f08ef8 (diff) | |
download | jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.tar.gz jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.zip |
Build: ESLint details
Use eslint pragmas, fix new errors, etc
Closes gh-3148
Diffstat (limited to 'src/attributes')
-rw-r--r-- | src/attributes/val.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/attributes/val.js b/src/attributes/val.js index 757680607..1ba42a5c8 100644 --- a/src/attributes/val.js +++ b/src/attributes/val.js @@ -143,11 +143,16 @@ jQuery.extend( { while ( i-- ) { option = options[ i ]; + + /* eslint-disable no-cond-assign */ + if ( option.selected = jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) { optionSet = true; } + + /* eslint-enable no-cond-assign */ } // Force browsers to behave consistently when non-matching value is set |