فهرست منبع

Set default value for ignoredElements to []. (#4518)

(as https://vuejs.org/v2/api/#ignoredElements puts it)
Dmitry Semenyuk 9 سال پیش
والد
کامیت
b8a2ee5c4b
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/core/config.js

+ 2 - 2
src/core/config.js

@@ -8,7 +8,7 @@ export type Config = {
   silent: boolean;
   devtools: boolean;
   errorHandler: ?Function;
-  ignoredElements: ?Array<string>;
+  ignoredElements: Array<string>;
   keyCodes: { [key: string]: number };
   // platform
   isReservedTag: (x?: string) => boolean;
@@ -46,7 +46,7 @@ const config: Config = {
   /**
    * Ignore certain custom elements
    */
-  ignoredElements: null,
+  ignoredElements: [],
 
   /**
    * Custom user key aliases for v-on