You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
316 B
10 lines
316 B
/* @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})`
|
|
}
|
|
|