mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 05:21:18 +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]");
|
||||
}
|
||||
|
||||
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
BIN
dist/htmx.min.js.gz
vendored
Binary file not shown.
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user