Minify JS breaking code?

I've got an add-on that is utilizing JS to count characters in a text input form, so I can display the remaining characters.

Here is the full JS:

JavaScript:

Код:
((window, document) =>
{
    XF.MyAddonCharCount = XF.Element.newHandler({
        
        textInput: null,
        maxLength: null,
        charCount: null,
        
        init ()
        {
            const textInput = this.target
            const charCount = textInput.parentElement.querySelector('div.formRow-explain span')...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ