[view] fix change in FrameSwitcher
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user