From 58c6ca9822afa42d3b40cca8edb0abe90a2bcb34 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 10 May 2016 12:12:28 +0300 Subject: Build: ESLint details Use eslint pragmas, fix new errors, etc Closes gh-3148 --- src/attributes/val.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/attributes/val.js') 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 -- cgit v1.2.3