From 7304385c11dc23dc89278be0995817c64619910d Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 24 Jun 2016 11:43:17 -0400 Subject: [PATCH] fix global mixin recursive name lookup --- src/core/global-api/mixin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/global-api/mixin.js b/src/core/global-api/mixin.js index 70afa716..aa8bcf24 100644 --- a/src/core/global-api/mixin.js +++ b/src/core/global-api/mixin.js @@ -9,6 +9,9 @@ export function initMixin (Vue: GlobalAPI) { // update constructors that are already created config._ctors.forEach(Ctor => { Ctor.options = mergeOptions(Ctor['super'].options, Ctor.extendOptions) + if (Ctor.options.name) { + Ctor.options.components[Ctor.options.name] = Ctor + } }) } }