Skip to content

Commit

Permalink
Allows to show another child during an existing transition
Browse files Browse the repository at this point in the history
  • Loading branch information
dmandrioli committed Jan 23, 2014
1 parent 267df69 commit 986a593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ViewStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 986a593

Please sign in to comment.