Skip to content

Commit

Permalink
avoid using native as identifier (close #5623)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 7, 2017
1 parent d52a499 commit ca02043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/codegen/events.js
Expand Up @@ -36,10 +36,10 @@ const modifierCode: { [key: string]: string } = {

export function genHandlers (
events: ASTElementHandlers,
native: boolean,
isNative: boolean,
warn: Function
): string {
let res = native ? 'nativeOn:{' : 'on:{'
let res = isNative ? 'nativeOn:{' : 'on:{'
for (const name in events) {
const handler = events[name]
// #5330: warn click.right, since right clicks do not actually fire click events.
Expand Down

0 comments on commit ca02043

Please sign in to comment.