All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.directives.x-ignore.js Maven / Gradle / Ivy

There is a newer version: 3.14.1
Show newest version
import { directive } from "../directives"

let handler = () => {}

handler.inline = (el, { modifiers }, { cleanup }) => {
    modifiers.includes('self')
        ? el._x_ignoreSelf = true
        : el._x_ignore = true

    cleanup(() => {
        modifiers.includes('self')
            ? delete el._x_ignoreSelf
            : delete el._x_ignore
    })
}

directive('ignore', handler)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy