mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
use internal toArray() + map() instead of Array.from()
This commit is contained in:
parent
381005b018
commit
0089ce480d
2
dist/htmx.js
vendored
2
dist/htmx.js
vendored
@ -1191,7 +1191,7 @@ return (function () {
|
||||
var name = getRawAttribute(elt,"name");
|
||||
var value = elt.value;
|
||||
if (!!getRawAttribute(elt, 'multiple')) {
|
||||
value = Array.from(elt.querySelectorAll("option:checked"), function (e) { return e.value });
|
||||
value = toArray(elt.querySelectorAll("option:checked")).map(function (e) { return e.value });
|
||||
}
|
||||
if (name != null && value != null) {
|
||||
var current = values[name];
|
||||
|
2
dist/htmx.min.js
vendored
2
dist/htmx.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/htmx.min.js.gz
vendored
BIN
dist/htmx.min.js.gz
vendored
Binary file not shown.
@ -1191,7 +1191,7 @@ return (function () {
|
||||
var name = getRawAttribute(elt,"name");
|
||||
var value = elt.value;
|
||||
if (!!getRawAttribute(elt, 'multiple')) {
|
||||
value = Array.from(elt.querySelectorAll("option:checked"), function (e) { return e.value });
|
||||
value = toArray(elt.querySelectorAll("option:checked")).map(function (e) { return e.value });
|
||||
}
|
||||
if (name != null && value != null) {
|
||||
var current = values[name];
|
||||
|
Loading…
x
Reference in New Issue
Block a user