Skip to content

Commit

Permalink
Merge pull request #65 from manonamora/patch-1
Browse files Browse the repository at this point in the history
Update events.js
  • Loading branch information
ChapelR committed Aug 21, 2023
2 parents 8dfaaf5 + 2c933ee commit ad63bf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
evt = this.args[0];

$(document)[method](evt + '.' + setup.eventMacroNamespace, sel, this.createShadowWrapper(function (e) {
if ($("input:focus").length === 0) {
code = payload[0].contents;
if (payload.length > 1) {
for (i = 1; i < payload.length; i++) {
Expand All @@ -67,6 +68,7 @@
}
}
new Wikifier(null, code);
}
}));

}
Expand Down Expand Up @@ -99,4 +101,4 @@
}
});

}());
}());

0 comments on commit ad63bf8

Please sign in to comment.