refactor(utils): reorganize some chunks

This commit is contained in:
Manu Mtz.-Almeida
2018-12-28 18:54:08 +01:00
committed by Manu MA
parent ca9ec3e18a
commit f9483a0c13
22 changed files with 41 additions and 118 deletions

View File

@ -1,7 +1,7 @@
import { Component, ComponentInterface, Element, Event, EventEmitter, EventListenerEnable, Listen, Method, Prop, QueueApi, State, Watch } from '@stencil/core';
import { Animation, Config, Gesture, GestureDetail, MenuChangeEventDetail, MenuControllerI, MenuI, Mode, Side } from '../../interface';
import { GESTURE_CONTROLLER } from '../../utils/gesture/gesture-controller';
import { GESTURE_CONTROLLER } from '../../utils/gesture';
import { assert, isEndSide as isEnd } from '../../utils/helpers';
@Component({
@ -174,7 +174,7 @@ export class Menu implements ComponentInterface, MenuI {
// register this menu with the app's menu controller
menuCtrl!._register(this);
this.gesture = (await import('../../utils/gesture/gesture')).createGesture({
this.gesture = (await import('../../utils/gesture')).createGesture({
el: this.doc,
queue: this.queue,
gestureName: 'menu-swipe',