refactor(navigation): async component loading (aka lazy loading)

async component loading (aka lazy loading)
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Dan Bucholtz
2017-03-02 15:05:35 -06:00
gitea-unlock(16/)
parent e40590d68c
commit 96657535f1
octicon-diff(16/tw-mr-1) 6 changed files with 204 additions and 140 deletions

4
src/navigation/swipe-back.ts
View File

@@ -1,6 +1,6 @@
import { swipeShouldReset } from '../util/util';
import { DomController } from '../platform/dom-controller';
import { GestureController, GesturePriority, GESTURE_GO_BACK_SWIPE } from '../gestures/gesture-controller';
import { GestureController, GESTURE_PRIORITY_GO_BACK_SWIPE, GESTURE_GO_BACK_SWIPE } from '../gestures/gesture-controller';
import { NavControllerBase } from './nav-controller-base';
import { Platform } from '../platform/platform';
import { SlideData } from '../gestures/slide-gesture';
@@ -26,7 +26,7 @@ export class SwipeBackGesture extends SlideEdgeGesture {
domController: domCtrl,
gesture: gestureCtlr.createGesture({
name: GESTURE_GO_BACK_SWIPE,
priority: GesturePriority.GoBackSwipe,
priority: GESTURE_PRIORITY_GO_BACK_SWIPE,
disableScroll: true
})
});