Skip to content

Commit

Permalink
release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
carson committed Feb 19, 2022
1 parent b857ee3 commit 0f7f93f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dist/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file modified dist/htmx.min.js.gz
Binary file not shown.
11 changes: 1 addition & 10 deletions www/js/demo/scratch.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,13 +14,8 @@
Foo
</div>


<template url="/foo">
${window.globalInt++}
</template>

<template url="/bar" delay="3000">
bar
${bar + 5}
</template>

</body>
Expand Down
4 changes: 2 additions & 2 deletions www/js/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions www/test/1.7.0/src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f7f93f

Please sign in to comment.