scripts.node_modules.vue.src.compiler.directives.on.js Maven / Gradle / Ivy
The newest version!
/* @flow */
import { warn } from 'core/util/index'
export default function on (el: ASTElement, dir: ASTDirective) {
if (process.env.NODE_ENV !== 'production' && dir.modifiers) {
warn(`v-on without argument does not support modifiers.`)
}
el.wrapListeners = (code: string) => `_g(${code},${dir.value})`
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy