META-INF.resources.butterfaces-dist-js.butterfaces-treebox.min.js Maven / Gradle / Ivy
var ButterFaces;!function(e){var r=(o.removeTrivialTreeDropDown=function(e){this.removeTrivialTreeDropDownById(e),this.removeUnAssociatedTrivialTreeDropDowns()},o.removeUnAssociatedTrivialTreeDropDowns=function(){var e=document.querySelectorAll(".tr-dropdown[data-tree-box-id]");Array.prototype.slice.call(e,0).forEach(function(e){var r=e.getAttribute("data-tree-box-id");0===document.querySelectorAll(".butter-component-treebox[data-tree-box-id="+r+"]").length&&e.parentNode.removeChild(e)})},o.removeTrivialTreeDropDownById=function(e){var r=document.querySelectorAll(".tr-dropdown[data-tree-box-id="+e+"]");Array.prototype.slice.call(r,0).forEach(function(e){e.parentNode.removeChild(e)})},o);function o(){}e.TreeBox=r}(ButterFaces=ButterFaces||{});
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLXRyZWVib3gudHMiXSwibmFtZXMiOlsiQnV0dGVyRmFjZXMiLCJUcmVlQm94IiwicmVtb3ZlVHJpdmlhbFRyZWVEcm9wRG93biIsInRyZWVCb3hJZCIsInRoaXMiLCJyZW1vdmVUcml2aWFsVHJlZURyb3BEb3duQnlJZCIsInJlbW92ZVVuQXNzb2NpYXRlZFRyaXZpYWxUcmVlRHJvcERvd25zIiwiZHJvcGRvd25zIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwiQXJyYXkiLCJwcm90b3R5cGUiLCJzbGljZSIsImNhbGwiLCJmb3JFYWNoIiwiZHJvcGRvd24iLCJkcm9wZG93bklkIiwiZ2V0QXR0cmlidXRlIiwibGVuZ3RoIiwicGFyZW50Tm9kZSIsInJlbW92ZUNoaWxkIl0sIm1hcHBpbmdzIjoiQUFBQSxJQUFVQSxhQUFWLFNBQVVBLEdBRU4sSUFBQUMsR0FFa0JBLEVBQUFDLDBCQUFkLFNBQXdDQyxHQUNwQ0MsS0FBS0M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gICAgICAgIEFycmF5LnByb3RvdHlwZS5zbGljZS5jYWxsKGRyb3Bkb3ducywgMCkuZm9yRWFjaCgoZHJvcGRvd246IGFueSkgPT4ge1xuICAgICAgICAgICAgICAgIGRyb3Bkb3duLnBhcmVudE5vZGUucmVtb3ZlQ2hpbGQoZHJvcGRvd24pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbn0iXX0=