@@ -99,7 +99,7 @@ module.exports = {
9999 var id = _ . checkComponent ( this . el , options )
100100 if ( ! id ) {
101101 // default constructor
102- this . Ctor = _ . Vue
102+ this . Component = _ . Vue
103103 // inline repeats should inherit
104104 this . inline = true
105105 // important: transclude with no options, just
@@ -109,7 +109,7 @@ module.exports = {
109109 copy . _asComponent = false
110110 this . _linkFn = compiler . compile ( this . template , copy )
111111 } else {
112- this . Ctor = null
112+ this . Component = null
113113 this . asComponent = true
114114 // check inline-template
115115 if ( this . _checkParam ( 'inline-template' ) !== null ) {
@@ -119,8 +119,8 @@ module.exports = {
119119 var tokens = textParser . parse ( id )
120120 if ( tokens ) {
121121 // dynamic component to be resolved later
122- var ctorExp = textParser . tokensToExp ( tokens )
123- this . ctorGetter = expParser . parse ( ctorExp ) . get
122+ var componentExp = textParser . tokensToExp ( tokens )
123+ this . componentGetter = expParser . parse ( componentExp ) . get
124124 } else {
125125 // static
126126 this . componentId = id
@@ -131,11 +131,11 @@ module.exports = {
131131
132132 resolveComponent : function ( ) {
133133 this . componentState = PENDING
134- this . vm . _resolveComponent ( this . componentId , _ . bind ( function ( Ctor ) {
134+ this . vm . _resolveComponent ( this . componentId , _ . bind ( function ( Component ) {
135135 if ( this . componentState === ABORTED ) {
136136 return
137137 }
138- this . Ctor = Ctor
138+ this . Component = Component
139139 this . componentState = RESOLVED
140140 this . realUpdate ( this . pendingData )
141141 this . pendingData = null
@@ -165,19 +165,19 @@ module.exports = {
165165 for ( key in meta ) {
166166 _ . define ( context , key , meta [ key ] )
167167 }
168- var id = this . ctorGetter . call ( context , context )
169- var Ctor = _ . resolveAsset ( this . vm . $options , 'components' , id )
168+ var id = this . componentGetter . call ( context , context )
169+ var Component = _ . resolveAsset ( this . vm . $options , 'components' , id )
170170 if ( process . env . NODE_ENV !== 'production' ) {
171- _ . assertAsset ( Ctor , 'component' , id )
171+ _ . assertAsset ( Component , 'component' , id )
172172 }
173- if ( ! Ctor . options ) {
173+ if ( ! Component . options ) {
174174 process . env . NODE_ENV !== 'production' && _ . warn (
175175 'Async resolution is not supported for v-repeat ' +
176176 '+ dynamic component. (component: ' + id + ')'
177177 )
178178 return _ . Vue
179179 }
180- return Ctor
180+ return Component
181181 } ,
182182
183183 /**
@@ -359,7 +359,7 @@ module.exports = {
359359 data = raw
360360 }
361361 // resolve constructor
362- var Ctor = this . Ctor || this . resolveDynamicComponent ( data , meta )
362+ var Component = this . Component || this . resolveDynamicComponent ( data , meta )
363363 var parent = this . _host || this . vm
364364 var vm = parent . $addChild ( {
365365 el : templateParser . clone ( this . template ) ,
@@ -373,14 +373,14 @@ module.exports = {
373373 // is this a component?
374374 _asComponent : this . asComponent ,
375375 // linker cachable if no inline-template
376- _linkerCachable : ! this . inlineTemplate && Ctor !== _ . Vue ,
376+ _linkerCachable : ! this . inlineTemplate && Component !== _ . Vue ,
377377 // pre-compiled linker for simple repeats
378378 _linkFn : this . _linkFn ,
379379 // identifier, shows that this vm belongs to this collection
380380 _repeatId : this . id ,
381381 // transclusion content owner
382382 _context : this . vm
383- } , Ctor )
383+ } , Component )
384384 // cache instance
385385 if ( needCache ) {
386386 this . cacheVm ( raw , vm , index , this . converted ? meta . $key : null )
0 commit comments