Просмотр исходного кода

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

(as https://vuejs.org/v2/api/#ignoredElements puts it)
Dmitry Semenyuk 9 лет назад
Родитель
Сommit
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