aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes/val.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/attributes/val.js')
-rw-r--r--src/attributes/val.js22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/attributes/val.js b/src/attributes/val.js
index 02559ffaa..38e170ba8 100644
--- a/src/attributes/val.js
+++ b/src/attributes/val.js
@@ -1,12 +1,8 @@
-define( [
- "../core",
- "../core/stripAndCollapse",
- "../core/nodeName",
+import jQuery from "../core.js";
+import stripAndCollapse from "../core/stripAndCollapse.js";
+import nodeName from "../core/nodeName.js";
- "../core/init"
-], function( jQuery, stripAndCollapse, nodeName ) {
-
-"use strict";
+import "../core/init.js";
var rreturn = /\r/g;
@@ -147,15 +143,11 @@ jQuery.extend( {
while ( i-- ) {
option = options[ i ];
- /* eslint-disable no-cond-assign */
-
- if ( option.selected =
+ 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
@@ -178,5 +170,3 @@ jQuery.each( [ "radio", "checkbox" ], function() {
}
};
} );
-
-} );