%PDF- %PDF-
Direktori : /www/loslex/test/node_modules/alpinejs/src/directives/ |
Current File : //www/loslex/test/node_modules/alpinejs/src/directives/x-ignore.js |
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)