summaryrefslogtreecommitdiffstatshomepage
path: root/test/attributes/hx-ext.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/attributes/hx-ext.js')
-rw-r--r--test/attributes/hx-ext.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/attributes/hx-ext.js b/test/attributes/hx-ext.js
index cead2f51..1211e722 100644
--- a/test/attributes/hx-ext.js
+++ b/test/attributes/hx-ext.js
@@ -8,21 +8,21 @@ describe("hx-ext attribute", function() {
clearWorkArea();
htmx.defineExtension("ext-1", {
onEvent : function(name, evt) {
- if(name === "afterRequest.htmx"){
+ if(name === "htmx:afterRequest"){
ext1Calls++;
}
}
});
htmx.defineExtension("ext-2", {
onEvent : function(name, evt) {
- if(name === "afterRequest.htmx"){
+ if(name === "htmx:afterRequest"){
ext2Calls++;
}
}
});
htmx.defineExtension("ext-3", {
onEvent : function(name, evt) {
- if(name === "afterRequest.htmx"){
+ if(name === "htmx:afterRequest"){
ext3Calls++;
}
}