Skip to content

Commit ca02043

Browse files
committed
avoid using native as identifier (close vuejs#5623)
1 parent d52a499 commit ca02043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/codegen/events.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ const modifierCode: { [key: string]: string } = {
3636

3737
export function genHandlers (
3838
events: ASTElementHandlers,
39-
native: boolean,
39+
isNative: boolean,
4040
warn: Function
4141
): string {
42-
let res = native ? 'nativeOn:{' : 'on:{'
42+
let res = isNative ? 'nativeOn:{' : 'on:{'
4343
for (const name in events) {
4444
const handler = events[name]
4545
// #5330: warn click.right, since right clicks do not actually fire click events.

0 commit comments

Comments
 (0)