Ver Fonte

avoid using native as identifier (close #5623)

Evan You há 9 anos atrás
pai
commit
ca02043194
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/compiler/codegen/events.js

+ 2 - 2
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.