mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
Rename htmx:processedNode => htmx:afterProcessNode
Have done search/replace and have renamed all instances in /src files, along with current tests. Have left /dist and /www untouched.
This commit is contained in:
parent
fd482e3a33
commit
ecce4f19d4
@ -69,7 +69,7 @@
|
||||
|
||||
htmx.defineExtension('class-tools', {
|
||||
onEvent: function (name, evt) {
|
||||
if (name === "htmx:processedNode") {
|
||||
if (name === "htmx:afterProcessNode") {
|
||||
var elt = evt.detail.elt;
|
||||
maybeProcessClasses(elt);
|
||||
if (elt.querySelectorAll) {
|
||||
|
@ -6,8 +6,8 @@ htmx.defineExtension("preload", {
|
||||
|
||||
onEvent: function(name, event) {
|
||||
|
||||
// Only take actions on "htmx:processedNode"
|
||||
if (name !== "htmx:processedNode") {
|
||||
// Only take actions on "htmx:afterProcessNode"
|
||||
if (name !== "htmx:afterProcessNode") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
htmx.defineExtension('remove-me', {
|
||||
onEvent: function (name, evt) {
|
||||
if (name === "htmx:processedNode") {
|
||||
if (name === "htmx:afterProcessNode") {
|
||||
var elt = evt.detail.elt;
|
||||
if (elt.getAttribute) {
|
||||
maybeRemoveMe(elt);
|
||||
|
@ -1250,6 +1250,7 @@ return (function () {
|
||||
var nodeData = getInternalData(elt);
|
||||
if (!nodeData.initialized) {
|
||||
nodeData.initialized = true;
|
||||
triggerEvent(elt, "htmx:beforeProcessNode")
|
||||
|
||||
if (elt.value) {
|
||||
nodeData.lastValue = elt.value;
|
||||
@ -1271,13 +1272,12 @@ return (function () {
|
||||
if (wsInfo) {
|
||||
processWebSocketInfo(elt, nodeData, wsInfo);
|
||||
}
|
||||
triggerEvent(elt, "htmx:processedNode");
|
||||
triggerEvent(elt, "htmx:afterProcessNode");
|
||||
}
|
||||
}
|
||||
|
||||
function processNode(elt) {
|
||||
elt = resolveTarget(elt);
|
||||
triggerEvent(elt, "htmx:beforeProcessNode")
|
||||
initNode(elt);
|
||||
forEach(findElementsToProcess(elt), function(child) { initNode(child) });
|
||||
}
|
||||
@ -1306,7 +1306,7 @@ return (function () {
|
||||
}
|
||||
|
||||
function ignoreEventForLogging(eventName) {
|
||||
return eventName === "htmx:processedNode"
|
||||
return eventName === "htmx:afterProcessNode"
|
||||
}
|
||||
|
||||
function withExtensions(elt, toDo) {
|
||||
|
@ -69,7 +69,7 @@
|
||||
|
||||
htmx.defineExtension('class-tools', {
|
||||
onEvent: function (name, evt) {
|
||||
if (name === "htmx:processedNode") {
|
||||
if (name === "htmx:afterProcessNode") {
|
||||
var elt = evt.detail.elt;
|
||||
maybeProcessClasses(elt);
|
||||
if (elt.querySelectorAll) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user