Skip to content

when most 1 jsonFormater,its a error,its my modify this bug #4

@LeisurelyYang

Description

@LeisurelyYang

bindEvent: function () {
const that = this;
var elements = this.options.dom.getElementsByClassName('imgToggle');//there is a modify

    Array.prototype.forEach.call(elements, function (el, i) {
        el.addEventListener('click', function () {
            if (that.isFormated == false) {
                return;
            }
            that.makeContentVisible(this.parentNode.nextElementSibling, !parseInt(this.getAttribute('data-status')));
        });
    });
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions