Add react-router
This commit is contained in:
parent
6534c0a596
commit
b2372a96e2
16 changed files with 176 additions and 59 deletions
|
@ -147,6 +147,15 @@ class ViewManager {
|
|||
});
|
||||
}
|
||||
|
||||
hideView() {
|
||||
if (currentView) {
|
||||
dispatchViewEvent(currentView, null, 'viewbeforehide');
|
||||
dispatchViewEvent(currentView, null, 'viewhide');
|
||||
currentView.classList.add('hide');
|
||||
currentView = null;
|
||||
}
|
||||
}
|
||||
|
||||
tryRestoreView(options, onViewChanging) {
|
||||
if (options.cancel) {
|
||||
return Promise.reject({ cancelled: true });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue