mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-04 00:05:20 +00:00
disallow hx-on
if allowEval
is not true
This commit is contained in:
parent
c96f01e81e
commit
1d146b103d
@ -1882,7 +1882,7 @@ return (function () {
|
|||||||
|
|
||||||
function processHxOn(elt) {
|
function processHxOn(elt) {
|
||||||
var hxOnValue = getAttributeValue(elt, 'hx-on');
|
var hxOnValue = getAttributeValue(elt, 'hx-on');
|
||||||
if (hxOnValue) {
|
if (hxOnValue && htmx.config.allowEval) {
|
||||||
var handlers = {}
|
var handlers = {}
|
||||||
var lines = hxOnValue.split("\n");
|
var lines = hxOnValue.split("\n");
|
||||||
var currentEvent = null;
|
var currentEvent = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user