Browse Source

avoid using native as identifier (close #5623)

dev
Evan You 8 years ago
parent
commit
ca02043194
  1. 4
      src/compiler/codegen/events.js

4
src/compiler/codegen/events.js

@ -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.

Loading…
Cancel
Save