fix typo in replaceChild

This commit is contained in:
David Greenspan
2013-06-17 14:58:35 -07:00
parent db36afc1a4
commit 8ffffaaeae
2 changed files with 3 additions and 1 deletions

View File

@@ -5,5 +5,7 @@
<body>
{{#each items}}
<div>{{text}}</div>
{{else}}
<strong>Empty</strong>
{{/each}}
</body>

View File

@@ -505,7 +505,7 @@ _.extend(Component.prototype, {
oldChild.constructor === newChild.constructor) {
oldChild.update(newChild._args);
} else if (this.stage !== Component.BUILT ||
oldChild !== Component.BUILT ||
oldChild.stage !== Component.BUILT ||
! oldChild.isAttached) {
this.removeChild(key);
this.addChild(newKey, newChild);