mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-03 07:45:21 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a5241cc2df
@ -1174,6 +1174,7 @@ return (function () {
|
|||||||
var settleInfo = makeSettleInfo(elt);
|
var settleInfo = makeSettleInfo(elt);
|
||||||
|
|
||||||
selectAndSwap(swapSpec.swapStyle, elt, target, response, settleInfo)
|
selectAndSwap(swapSpec.swapStyle, elt, target, response, settleInfo)
|
||||||
|
settleImmediately(settleInfo.tasks)
|
||||||
triggerEvent(elt, "htmx:sseMessage", event)
|
triggerEvent(elt, "htmx:sseMessage", event)
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1427,7 +1428,7 @@ return (function () {
|
|||||||
while(historyCache.length > 0){
|
while(historyCache.length > 0){
|
||||||
try {
|
try {
|
||||||
localStorage.setItem("htmx-history-cache", JSON.stringify(historyCache));
|
localStorage.setItem("htmx-history-cache", JSON.stringify(historyCache));
|
||||||
return;
|
break;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
triggerErrorEvent(getDocument().body, "htmx:historyCacheError", {cause:e, cache: historyCache})
|
triggerErrorEvent(getDocument().body, "htmx:historyCacheError", {cause:e, cache: historyCache})
|
||||||
historyCache.shift(); // shrink the cache and retry
|
historyCache.shift(); // shrink the cache and retry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user