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')));
});
});
},
bindEvent: function () {
const that = this;
var elements = this.options.dom.getElementsByClassName('imgToggle');//there is a modify