From 7b7819fe6ee0b3d15318044c0f7e6b186e2f84da Mon Sep 17 00:00:00 2001 From: shmyga Date: Fri, 28 Feb 2020 21:58:49 +0300 Subject: [PATCH] [view] fix change in FrameSwitcher --- src/main/haxework/view/frame/FrameSwitcher.hx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/haxework/view/frame/FrameSwitcher.hx b/src/main/haxework/view/frame/FrameSwitcher.hx index 9b5de2b..a673f20 100755 --- a/src/main/haxework/view/frame/FrameSwitcher.hx +++ b/src/main/haxework/view/frame/FrameSwitcher.hx @@ -57,11 +57,6 @@ class FrameSwitcher extends GroupView { if (current == null) { throw 'frame "$id" not found'; } - addView(current); - toUpdate(); - update(); - focus(current); - current.onShow(data); if (animate != null) { animate.cancel(); } @@ -71,6 +66,11 @@ class FrameSwitcher extends GroupView { } else { removePrev(prev); } + addView(current); + toUpdate(); + update(); + focus(current); + current.onShow(data); history.push({id:current.frameId, data:data}); onSwitch.emit(current); return cast current;