mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
refactor(refresher): move to constants from enum
move to constants from enum
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import { Directive, EventEmitter, Host, Input, NgZone, Output } from '@angular/core';
|
import { Directive, EventEmitter, Host, Input, NgZone, Output } from '@angular/core';
|
||||||
|
|
||||||
import { Content } from '../content/content';
|
import { Content } from '../content/content';
|
||||||
import { GestureController, GestureDelegate, GesturePriority, GESTURE_REFRESHER } from '../../gestures/gesture-controller';
|
import { GestureController, GestureDelegate, GESTURE_PRIORITY_REFRESHER, GESTURE_REFRESHER } from '../../gestures/gesture-controller';
|
||||||
import { isTrueProperty } from '../../util/util';
|
import { isTrueProperty } from '../../util/util';
|
||||||
import { Platform } from '../../platform/platform';
|
import { Platform } from '../../platform/platform';
|
||||||
import { pointerCoord } from '../../util/dom';
|
import { pointerCoord } from '../../util/dom';
|
||||||
@ -205,7 +205,7 @@ export class Refresher {
|
|||||||
_content.setElementClass('has-refresher', true);
|
_content.setElementClass('has-refresher', true);
|
||||||
this._gesture = gestureCtrl.createGesture({
|
this._gesture = gestureCtrl.createGesture({
|
||||||
name: GESTURE_REFRESHER,
|
name: GESTURE_REFRESHER,
|
||||||
priority: GesturePriority.Refresher,
|
priority: GESTURE_PRIORITY_REFRESHER
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user