jsonFormater
jsonFormater copied to clipboard
when most 1 jsonFormater,its a error,its my modify this bug
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')));
});
});
},