CasperSecurity

Current Path : /var/www/hrms.uiet.co.in/node_modules/alpinejs/src/utils/
Upload File :
Current File : /var/www/hrms.uiet.co.in/node_modules/alpinejs/src/utils/walk.js

export function walk(el, callback) {
    if (typeof ShadowRoot === 'function' && el instanceof ShadowRoot) {
        Array.from(el.children).forEach(el => walk(el, callback))

        return
    }

    let skip = false

    callback(el, () => skip = true)

    if (skip) return

    let node = el.firstElementChild

    while (node) {
        walk(node, callback, false)

        node = node.nextElementSibling
    }
}
// export function walk(el, callback) {
//     if (el instanceof ShadowRoot || el instanceof DocumentFragment) {
//         Array.from(el.children).forEach(el => walk(el, callback))

//         return
//     }

//     callback(el, () => {
//         let node = el.firstElementChild

//         while (node) {
//             walk(node, callback)

//             node = node.nextElementSibling
//         }
//     })
// }
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY