release prep

This commit is contained in:
carson 2022-02-19 14:18:13 -07:00
parent b857ee3722
commit 0f7f93f1f9
5 changed files with 7 additions and 16 deletions

4
dist/htmx.js vendored
View File

@ -1656,13 +1656,13 @@ return (function () {
});
}
function isBoosted() {
function hasChanceOfBeingBoosted() {
return document.querySelector("[hx-boost], [data-hx-boost]");
}
function findElementsToProcess(elt) {
if (elt.querySelectorAll) {
var boostedElts = isBoosted() ? ", a, form" : "";
var boostedElts = hasChanceOfBeingBoosted() ? ", a, form" : "";
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
" [data-hx-ws], [hx-ext], [hx-data-ext]");
return results;

BIN
dist/htmx.min.js.gz vendored

Binary file not shown.

View File

@ -5,10 +5,6 @@
<body>
<!-- post to /foo -->
<button hx-get="/foo" hx-target="#result">Count Up</button> <output id="result"></output>
<!-- respond to /foo -->
<script>
globalInt = 0;
</script>
<button _="init log 'inited from hyperscript!'">
Init From Hyperscript
@ -18,13 +14,8 @@
Foo
</div>
<template url="/foo">
${window.globalInt++}
</template>
<template url="/bar" delay="3000">
bar
${bar + 5}
</template>
</body>

View File

@ -1656,13 +1656,13 @@ return (function () {
});
}
function isBoosted() {
function hasChanceOfBeingBoosted() {
return document.querySelector("[hx-boost], [data-hx-boost]");
}
function findElementsToProcess(elt) {
if (elt.querySelectorAll) {
var boostedElts = isBoosted() ? ", a, form" : "";
var boostedElts = hasChanceOfBeingBoosted() ? ", a, form" : "";
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
" [data-hx-ws], [hx-ext], [hx-data-ext]");
return results;

View File

@ -1656,13 +1656,13 @@ return (function () {
});
}
function isBoosted() {
function hasChanceOfBeingBoosted() {
return document.querySelector("[hx-boost], [data-hx-boost]");
}
function findElementsToProcess(elt) {
if (elt.querySelectorAll) {
var boostedElts = isBoosted() ? ", a, form" : "";
var boostedElts = hasChanceOfBeingBoosted() ? ", a, form" : "";
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
" [data-hx-ws], [hx-ext], [hx-data-ext]");
return results;