mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(core): fix misspellings
This commit is contained in:
4
core/src/components.d.ts
vendored
4
core/src/components.d.ts
vendored
@@ -2633,11 +2633,11 @@ export namespace Components {
|
||||
*/
|
||||
'mode': Mode;
|
||||
/**
|
||||
* Returns a promise that resolves when the modal did dismiss. It also accepts a callback that is called in the same circustances.
|
||||
* Returns a promise that resolves when the modal did dismiss. It also accepts a callback that is called in the same circumstances.
|
||||
*/
|
||||
'onDidDismiss': () => Promise<OverlayEventDetail<any>>;
|
||||
/**
|
||||
* Returns a promise that resolves when the modal will dismiss. It also accepts a callback that is called in the same circustances.
|
||||
* Returns a promise that resolves when the modal will dismiss. It also accepts a callback that is called in the same circumstances.
|
||||
*/
|
||||
'onWillDismiss': () => Promise<OverlayEventDetail<any>>;
|
||||
'overlayIndex': number;
|
||||
|
||||
@@ -35,7 +35,7 @@ export interface Animation {
|
||||
progressStart(): void;
|
||||
progressStep(stepValue: number): void;
|
||||
progressEnd(shouldComplete: boolean, currentStepValue: number, dur: number): void;
|
||||
onFinish(callback: (animation?: Animation) => void, opts?: {oneTimeCallback?: boolean, clearExistingCallacks?: boolean}): Animation;
|
||||
onFinish(callback: (animation?: Animation) => void, opts?: {oneTimeCallback?: boolean, clearExistingCallbacks?: boolean}): Animation;
|
||||
destroy(): void;
|
||||
isRoot(): boolean;
|
||||
hasCompleted: boolean;
|
||||
|
||||
@@ -363,7 +363,7 @@ export class Animator {
|
||||
|
||||
playAsync(opts?: PlayOptions): Promise<Animator> {
|
||||
return new Promise(resolve => {
|
||||
this.onFinish(resolve, { oneTimeCallback: true, clearExistingCallacks: true });
|
||||
this.onFinish(resolve, { oneTimeCallback: true, clearExistingCallbacks: true });
|
||||
this.play(opts);
|
||||
return this;
|
||||
});
|
||||
@@ -1120,8 +1120,8 @@ export class Animator {
|
||||
/**
|
||||
* Add a callback to fire when the animation has finished.
|
||||
*/
|
||||
onFinish(callback: (animation?: any) => void, opts?: {oneTimeCallback?: boolean, clearExistingCallacks?: boolean}): Animator {
|
||||
if (opts && opts.clearExistingCallacks) {
|
||||
onFinish(callback: (animation?: any) => void, opts?: {oneTimeCallback?: boolean, clearExistingCallbacks?: boolean}): Animator {
|
||||
if (opts && opts.clearExistingCallbacks) {
|
||||
this._onFinishCallbacks = this._onFinishOneTimeCallbacks = undefined;
|
||||
}
|
||||
if (opts && opts.oneTimeCallback) {
|
||||
|
||||
@@ -387,7 +387,7 @@ export class Menu implements MenuI {
|
||||
this.lastOnEnd = detail.timeStamp;
|
||||
this.animation
|
||||
.onFinish(() => this.afterAnimation(shouldOpen), {
|
||||
clearExistingCallacks: true
|
||||
clearExistingCallbacks: true
|
||||
})
|
||||
.progressEnd(shouldComplete, stepValue, realDur);
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ export class Modal implements OverlayInterface {
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves when the modal did dismiss. It also accepts a callback
|
||||
* that is called in the same circustances.
|
||||
* that is called in the same circumstances.
|
||||
*
|
||||
*/
|
||||
@Method()
|
||||
@@ -194,7 +194,7 @@ export class Modal implements OverlayInterface {
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves when the modal will dismiss. It also accepts a callback
|
||||
* that is called in the same circustances.
|
||||
* that is called in the same circumstances.
|
||||
*
|
||||
*/
|
||||
@Method()
|
||||
|
||||
@@ -98,7 +98,7 @@ export function createGesture(config: GestureConfig): Gesture {
|
||||
|
||||
function pointerMove(ev: UIEvent) {
|
||||
// fast path, if gesture is currently captured
|
||||
// do minimun job to get user-land even dispatched
|
||||
// do minimum job to get user-land even dispatched
|
||||
if (hasCapturedPan) {
|
||||
if (!isMoveQueued && hasFiredStart) {
|
||||
isMoveQueued = true;
|
||||
@@ -137,11 +137,11 @@ export function createGesture(config: GestureConfig): Gesture {
|
||||
hasFiredStart = false;
|
||||
|
||||
// reset start position since the real user-land event starts here
|
||||
// If the pan detector threshold is big, not reseting the start position
|
||||
// If the pan detector threshold is big, not resetting the start position
|
||||
// will cause a jump in the animation equal to the detector threshold.
|
||||
// the array of positions used to calculate the gesture velocity does not
|
||||
// need to be cleaned, more points in the positions array always results in a
|
||||
// more acurate value of the velocity.
|
||||
// more accurate value of the velocity.
|
||||
detail.startX = detail.currentX;
|
||||
detail.startY = detail.currentY;
|
||||
detail.startTimeStamp = detail.timeStamp;
|
||||
|
||||
Reference in New Issue
Block a user