style(core): fix misspellings

This commit is contained in:
Brandy Carney
2018-08-30 17:05:22 -04:00
parent 88ab4f9ee5
commit 4c879900e5
6 changed files with 12 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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);
}

View File

@@ -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()

View File

@@ -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;