From b51ed1755d7ff47d5e7ac02f64c8e05a36e48fc7 Mon Sep 17 00:00:00 2001 From: carson Date: Thu, 1 Oct 2020 10:48:56 -0600 Subject: [PATCH] rename config variable to match function name --- src/htmx.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/htmx.js b/src/htmx.js index 202eddd9..6a646a66 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -41,7 +41,7 @@ return (function () { requestClass:'htmx-request', settlingClass:'htmx-settling', swappingClass:'htmx-swapping', - attributesToSwizzle:["class", "style", "width", "height"] + attributesToSettle:["class", "style", "width", "height"] }, parseInterval:parseInterval, _:internalEval, @@ -381,9 +381,9 @@ return (function () { } function shouldSettleAttribute(name) { - var attributesToSwizzle = htmx.config.attributesToSwizzle; - for (var i = 0; i < attributesToSwizzle.length; i++) { - if (name === attributesToSwizzle[i]) { + var attributesToSettle = htmx.config.attributesToSettle; + for (var i = 0; i < attributesToSettle.length; i++) { + if (name === attributesToSettle[i]) { return true; } }