From 4c879900e5533eda790a990d1e5659ce01a4fdf2 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 30 Aug 2018 17:05:22 -0400 Subject: [PATCH] style(core): fix misspellings --- core/src/components.d.ts | 4 ++-- .../components/animation-controller/animation-interface.tsx | 2 +- core/src/components/animation-controller/animator.tsx | 6 +++--- core/src/components/menu/menu.tsx | 2 +- core/src/components/modal/modal.tsx | 4 ++-- core/src/utils/gesture/gesture.ts | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 71925f9177..f353503a02 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -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>; /** - * 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>; 'overlayIndex': number; diff --git a/core/src/components/animation-controller/animation-interface.tsx b/core/src/components/animation-controller/animation-interface.tsx index ef06d3461e..dbf1ac9c97 100644 --- a/core/src/components/animation-controller/animation-interface.tsx +++ b/core/src/components/animation-controller/animation-interface.tsx @@ -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; diff --git a/core/src/components/animation-controller/animator.tsx b/core/src/components/animation-controller/animator.tsx index 9b7d9fe4e8..2e2f08ccba 100644 --- a/core/src/components/animation-controller/animator.tsx +++ b/core/src/components/animation-controller/animator.tsx @@ -363,7 +363,7 @@ export class Animator { playAsync(opts?: PlayOptions): Promise { 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) { diff --git a/core/src/components/menu/menu.tsx b/core/src/components/menu/menu.tsx index 37d23a95ba..596384d0b0 100644 --- a/core/src/components/menu/menu.tsx +++ b/core/src/components/menu/menu.tsx @@ -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); } diff --git a/core/src/components/modal/modal.tsx b/core/src/components/modal/modal.tsx index 544839c0ad..6d2a53cdd0 100644 --- a/core/src/components/modal/modal.tsx +++ b/core/src/components/modal/modal.tsx @@ -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() diff --git a/core/src/utils/gesture/gesture.ts b/core/src/utils/gesture/gesture.ts index d4d855f7be..0e75f37ae2 100644 --- a/core/src/utils/gesture/gesture.ts +++ b/core/src/utils/gesture/gesture.ts @@ -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;