Skip to content

Commit faa0209

Browse files
committed
feat(pat-ajax): Pass the URL to the pat-ajax-success event payload.
This allows to use the URL in an event handler for certain actions.
1 parent cde2a3a commit faa0209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/ajax/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const _ = {
9898
// if this url is requested multiple time, only return the last result
9999
$el.trigger({
100100
type: "pat-ajax-success",
101-
jqxhr: jqxhr,
101+
jqxhr: {"url": cfg.url, ...jqxhr},
102102
});
103103
} else {
104104
// ignore

0 commit comments

Comments
 (0)