We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59dae21 commit 3371285Copy full SHA for 3371285
src/test/resources/libraries/htmx/htmx-1.9.1/src/htmx.js
@@ -1867,7 +1867,11 @@ return (function () {
1867
1868
function addHxOnEventHandler(elt, eventName, code) {
1869
var nodeData = getInternalData(elt);
1870
+ /* HtmlUnit patch
1871
nodeData.onHandlers ||= {};
1872
+ */
1873
+ if (!nodeData.onHandlers) nodeData.onHandlers = {};
1874
+
1875
var func = new Function("event", code + "; return;");
1876
var listener = elt.addEventListener(eventName, function (e) {
1877
return func.call(elt, e);
0 commit comments