mirror of https://github.com/go-gitea/gitea
Update web_src/js/utils/dom.js
This commit is contained in:
parent
a8941e03c5
commit
845133d89a
|
@ -55,10 +55,6 @@ export function queryElemSiblings(el, selector) {
|
|||
return Array.from(el.parentNode.children).filter((child) => child !== el && child.matches(selector));
|
||||
}
|
||||
|
||||
export function queryElems(selector, fn) {
|
||||
return applyElemsCallback(document.querySelectorAll(selector), fn);
|
||||
}
|
||||
|
||||
export function onDomReady(cb) {
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', cb);
|
||||
|
|
Loading…
Reference in New Issue