Skip to content

Commit

Permalink
they see me lintin'
Browse files Browse the repository at this point in the history
they hatin'
  • Loading branch information
1cg committed May 16, 2024
1 parent 8928efc commit d84c2b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,7 @@ var htmx = (function() {
* @param {Element} elt
*/
function eltIsDisabled(elt) {
return closest(elt, htmx.config.disableSelector);
return closest(elt, htmx.config.disableSelector)
}

/**
Expand All @@ -2270,7 +2270,6 @@ var htmx = (function() {
* @param {HtmxTriggerSpecification[]} triggerSpecs
*/
function boostElement(elt, nodeData, triggerSpecs) {

if ((elt instanceof HTMLAnchorElement && isLocalLink(elt) && (elt.target === '' || elt.target === '_self')) || elt.tagName === 'FORM') {
nodeData.boosted = true
let verb, path
Expand Down Expand Up @@ -2736,12 +2735,12 @@ var htmx = (function() {
const listener = function(e) {
maybeEval(elt, function() {
if (eltIsDisabled(elt)) {

Check failure on line 2737 in src/htmx.js

View workflow job for this annotation

GitHub Actions / test_suite

Argument of type 'EventTarget' is not assignable to parameter of type 'Element'.
return;
return
}
if (!func) {
func = new Function('event', code)
}
func.call(elt, e);
func.call(elt, e)
})
}
elt.addEventListener(eventName, listener)
Expand Down

0 comments on commit d84c2b7

Please sign in to comment.