Skip to content

Commit 3371285

Browse files
committed
Htmx patch for rhino not supporting ||=
1 parent 59dae21 commit 3371285

File tree

1 file changed

+4
-0
lines changed
  • src/test/resources/libraries/htmx/htmx-1.9.1/src

1 file changed

+4
-0
lines changed

src/test/resources/libraries/htmx/htmx-1.9.1/src/htmx.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,11 @@ return (function () {
18671867

18681868
function addHxOnEventHandler(elt, eventName, code) {
18691869
var nodeData = getInternalData(elt);
1870+
/* HtmlUnit patch
18701871
nodeData.onHandlers ||= {};
1872+
*/
1873+
if (!nodeData.onHandlers) nodeData.onHandlers = {};
1874+
18711875
var func = new Function("event", code + "; return;");
18721876
var listener = elt.addEventListener(eventName, function (e) {
18731877
return func.call(elt, e);

0 commit comments

Comments
 (0)