trim all arguments

pull/83/head
Aevann 2023-01-01 10:56:11 +02:00
parent f3e22a9011
commit 662ab8a209
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ function execute(element, attr) {
if (func) {
const split = func.split('(')
const name = split[0]
const args = split[1].replace(/[' )]/g, "").split(',')
const args = split[1].replace(/[')]/g, "").split(',').map(a => a.trim());
if (args[0] == 'this') args[0] = element
try {
window[name](...args);