mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 14:31:47 +00:00
release prep
This commit is contained in:
parent
b857ee3722
commit
0f7f93f1f9
4
dist/htmx.js
vendored
4
dist/htmx.js
vendored
@ -1656,13 +1656,13 @@ return (function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function isBoosted() {
|
function hasChanceOfBeingBoosted() {
|
||||||
return document.querySelector("[hx-boost], [data-hx-boost]");
|
return document.querySelector("[hx-boost], [data-hx-boost]");
|
||||||
}
|
}
|
||||||
|
|
||||||
function findElementsToProcess(elt) {
|
function findElementsToProcess(elt) {
|
||||||
if (elt.querySelectorAll) {
|
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]," +
|
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
|
||||||
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
||||||
return results;
|
return results;
|
||||||
|
BIN
dist/htmx.min.js.gz
vendored
BIN
dist/htmx.min.js.gz
vendored
Binary file not shown.
@ -5,10 +5,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<!-- post to /foo -->
|
<!-- post to /foo -->
|
||||||
<button hx-get="/foo" hx-target="#result">Count Up</button> <output id="result"></output>
|
<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!'">
|
<button _="init log 'inited from hyperscript!'">
|
||||||
Init From Hyperscript
|
Init From Hyperscript
|
||||||
@ -18,13 +14,8 @@
|
|||||||
Foo
|
Foo
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<template url="/foo">
|
<template url="/foo">
|
||||||
${window.globalInt++}
|
${bar + 5}
|
||||||
</template>
|
|
||||||
|
|
||||||
<template url="/bar" delay="3000">
|
|
||||||
bar
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -1656,13 +1656,13 @@ return (function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function isBoosted() {
|
function hasChanceOfBeingBoosted() {
|
||||||
return document.querySelector("[hx-boost], [data-hx-boost]");
|
return document.querySelector("[hx-boost], [data-hx-boost]");
|
||||||
}
|
}
|
||||||
|
|
||||||
function findElementsToProcess(elt) {
|
function findElementsToProcess(elt) {
|
||||||
if (elt.querySelectorAll) {
|
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]," +
|
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
|
||||||
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
||||||
return results;
|
return results;
|
||||||
|
@ -1656,13 +1656,13 @@ return (function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function isBoosted() {
|
function hasChanceOfBeingBoosted() {
|
||||||
return document.querySelector("[hx-boost], [data-hx-boost]");
|
return document.querySelector("[hx-boost], [data-hx-boost]");
|
||||||
}
|
}
|
||||||
|
|
||||||
function findElementsToProcess(elt) {
|
function findElementsToProcess(elt) {
|
||||||
if (elt.querySelectorAll) {
|
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]," +
|
var results = elt.querySelectorAll(VERB_SELECTOR + boostedElts + ", [hx-sse], [data-hx-sse], [hx-ws]," +
|
||||||
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
" [data-hx-ws], [hx-ext], [hx-data-ext]");
|
||||||
return results;
|
return results;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user