From 986a593e40ac97bc2f6de6c166d9825ca256161a Mon Sep 17 00:00:00 2001 From: Damien Mandrioli Date: Wed, 15 Jan 2014 15:21:34 +0100 Subject: [PATCH] Allows to show another child during an existing transition --- ViewStack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ViewStack.js b/ViewStack.js index deb406d5c9..a8ee8e1f9d 100644 --- a/ViewStack.js +++ b/ViewStack.js @@ -201,7 +201,7 @@ define(["dcl/dcl", for (var i = 0; i < this._transitionEndHandlers.length; i++) { item = this._transitionEndHandlers[i]; if (event.target === item.node) { - if (domClass.contains(item.node, "-d-view-stack-out")) { + if (event.target !== this._visibleChild && domClass.contains(item.node, "-d-view-stack-out")) { setVisibility(item.node, false); } domClass.remove(item.node, ["-d-view-stack-in", "-d-view-stack-out", "-d-view-stack-reverse",