Skip to content

Commit b1a6458

Browse files
committed
minor change
1 parent cbc402a commit b1a6458

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/directives/component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ module.exports = {
166166
return cached
167167
}
168168
}
169-
var owner = this._host || this.vm
170-
var el = templateParser.clone(this.el)
171169
if (this.Ctor) {
172-
var child = owner.$addChild({
170+
var parent = this._host || this.vm
171+
var el = templateParser.clone(this.el)
172+
var child = parent.$addChild({
173173
el: el,
174174
data: data,
175175
template: this.template,

src/directives/repeat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ module.exports = {
346346
}
347347
// resolve constructor
348348
var Ctor = this.Ctor || this.resolveDynamicComponent(data, meta)
349-
var owner = this._host || this.vm
350-
var vm = owner.$addChild({
349+
var parent = this._host || this.vm
350+
var vm = parent.$addChild({
351351
el: templateParser.clone(this.template),
352352
data: data,
353353
inherit: this.inherit,

0 commit comments

Comments
 (0)