jsonFormater icon indicating copy to clipboard operation
jsonFormater copied to clipboard

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

Open LeisurelyYang opened this issue 6 years ago • 0 comments

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')));
        });
    });
},

LeisurelyYang avatar Nov 02 '18 07:11 LeisurelyYang