From 8ffffaaeae624d2ee57d1b5b5500cea4f3cc5eda Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Mon, 17 Jun 2013 14:58:35 -0700 Subject: [PATCH] fix typo in replaceChild --- examples/unfinished/shark/client/shark.html | 2 ++ packages/ui/component.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/unfinished/shark/client/shark.html b/examples/unfinished/shark/client/shark.html index 97aa8c8a0b..41fd12222b 100644 --- a/examples/unfinished/shark/client/shark.html +++ b/examples/unfinished/shark/client/shark.html @@ -5,5 +5,7 @@ {{#each items}}
{{text}}
+{{else}} + Empty {{/each}} diff --git a/packages/ui/component.js b/packages/ui/component.js index 0207867364..d3d803d28b 100644 --- a/packages/ui/component.js +++ b/packages/ui/component.js @@ -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);