@@ -99,7 +99,7 @@ module.exports = {
99
99
var id = _ . checkComponent ( this . el , options )
100
100
if ( ! id ) {
101
101
// default constructor
102
- this . Ctor = _ . Vue
102
+ this . Component = _ . Vue
103
103
// inline repeats should inherit
104
104
this . inline = true
105
105
// important: transclude with no options, just
@@ -109,7 +109,7 @@ module.exports = {
109
109
copy . _asComponent = false
110
110
this . _linkFn = compiler . compile ( this . template , copy )
111
111
} else {
112
- this . Ctor = null
112
+ this . Component = null
113
113
this . asComponent = true
114
114
// check inline-template
115
115
if ( this . _checkParam ( 'inline-template' ) !== null ) {
@@ -119,8 +119,8 @@ module.exports = {
119
119
var tokens = textParser . parse ( id )
120
120
if ( tokens ) {
121
121
// 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
124
124
} else {
125
125
// static
126
126
this . componentId = id
@@ -131,11 +131,11 @@ module.exports = {
131
131
132
132
resolveComponent : function ( ) {
133
133
this . componentState = PENDING
134
- this . vm . _resolveComponent ( this . componentId , _ . bind ( function ( Ctor ) {
134
+ this . vm . _resolveComponent ( this . componentId , _ . bind ( function ( Component ) {
135
135
if ( this . componentState === ABORTED ) {
136
136
return
137
137
}
138
- this . Ctor = Ctor
138
+ this . Component = Component
139
139
this . componentState = RESOLVED
140
140
this . realUpdate ( this . pendingData )
141
141
this . pendingData = null
@@ -165,19 +165,19 @@ module.exports = {
165
165
for ( key in meta ) {
166
166
_ . define ( context , key , meta [ key ] )
167
167
}
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 )
170
170
if ( process . env . NODE_ENV !== 'production' ) {
171
- _ . assertAsset ( Ctor , 'component' , id )
171
+ _ . assertAsset ( Component , 'component' , id )
172
172
}
173
- if ( ! Ctor . options ) {
173
+ if ( ! Component . options ) {
174
174
process . env . NODE_ENV !== 'production' && _ . warn (
175
175
'Async resolution is not supported for v-repeat ' +
176
176
'+ dynamic component. (component: ' + id + ')'
177
177
)
178
178
return _ . Vue
179
179
}
180
- return Ctor
180
+ return Component
181
181
} ,
182
182
183
183
/**
@@ -359,7 +359,7 @@ module.exports = {
359
359
data = raw
360
360
}
361
361
// resolve constructor
362
- var Ctor = this . Ctor || this . resolveDynamicComponent ( data , meta )
362
+ var Component = this . Component || this . resolveDynamicComponent ( data , meta )
363
363
var parent = this . _host || this . vm
364
364
var vm = parent . $addChild ( {
365
365
el : templateParser . clone ( this . template ) ,
@@ -373,14 +373,14 @@ module.exports = {
373
373
// is this a component?
374
374
_asComponent : this . asComponent ,
375
375
// linker cachable if no inline-template
376
- _linkerCachable : ! this . inlineTemplate && Ctor !== _ . Vue ,
376
+ _linkerCachable : ! this . inlineTemplate && Component !== _ . Vue ,
377
377
// pre-compiled linker for simple repeats
378
378
_linkFn : this . _linkFn ,
379
379
// identifier, shows that this vm belongs to this collection
380
380
_repeatId : this . id ,
381
381
// transclusion content owner
382
382
_context : this . vm
383
- } , Ctor )
383
+ } , Component )
384
384
// cache instance
385
385
if ( needCache ) {
386
386
this . cacheVm ( raw , vm , index , this . converted ? meta . $key : null )
0 commit comments