rename config variable to match function name

This commit is contained in:
carson 2020-10-01 10:48:56 -06:00
parent d90d7160c8
commit b51ed1755d

View File

@ -41,7 +41,7 @@ return (function () {
requestClass:'htmx-request', requestClass:'htmx-request',
settlingClass:'htmx-settling', settlingClass:'htmx-settling',
swappingClass:'htmx-swapping', swappingClass:'htmx-swapping',
attributesToSwizzle:["class", "style", "width", "height"] attributesToSettle:["class", "style", "width", "height"]
}, },
parseInterval:parseInterval, parseInterval:parseInterval,
_:internalEval, _:internalEval,
@ -381,9 +381,9 @@ return (function () {
} }
function shouldSettleAttribute(name) { function shouldSettleAttribute(name) {
var attributesToSwizzle = htmx.config.attributesToSwizzle; var attributesToSettle = htmx.config.attributesToSettle;
for (var i = 0; i < attributesToSwizzle.length; i++) { for (var i = 0; i < attributesToSettle.length; i++) {
if (name === attributesToSwizzle[i]) { if (name === attributesToSettle[i]) {
return true; return true;
} }
} }