From 607de8f3dacd90f1d49cfe79f7a172472ef94997 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 15 Nov 2016 04:14:01 +0100 Subject: [PATCH] chore: fix detach typos in overlay and portal (#1840) --- src/lib/core/overlay/overlay-ref.ts | 6 +++--- src/lib/core/portal/portal-directives.ts | 2 +- src/lib/core/portal/portal.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/core/overlay/overlay-ref.ts b/src/lib/core/overlay/overlay-ref.ts index b427fa925d2..f2cd0e82845 100644 --- a/src/lib/core/overlay/overlay-ref.ts +++ b/src/lib/core/overlay/overlay-ref.ts @@ -33,12 +33,12 @@ export class OverlayRef implements PortalHost { } detach(): Promise { - this._detatchBackdrop(); + this._detachBackdrop(); return this._portalHost.detach(); } dispose(): void { - this._detatchBackdrop(); + this._detachBackdrop(); this._portalHost.dispose(); } @@ -101,7 +101,7 @@ export class OverlayRef implements PortalHost { } /** Detaches the backdrop (if any) associated with the overlay. */ - private _detatchBackdrop(): void { + private _detachBackdrop(): void { let backdropToDetach = this._backdropElement; if (backdropToDetach) { diff --git a/src/lib/core/portal/portal-directives.ts b/src/lib/core/portal/portal-directives.ts index 75feb45f10e..75723027e7b 100644 --- a/src/lib/core/portal/portal-directives.ts +++ b/src/lib/core/portal/portal-directives.ts @@ -97,7 +97,7 @@ export class PortalHostDirective extends BasePortalHost implements OnDestroy { return new Map(); } - /** Detatches the currently attached Portal (if there is one) and attaches the given Portal. */ + /** Detaches the currently attached Portal (if there is one) and attaches the given Portal. */ private _replaceAttachedPortal(p: Portal): void { if (this.hasAttached()) { this.detach(); diff --git a/src/lib/core/portal/portal.ts b/src/lib/core/portal/portal.ts index b75a6936913..b610291eea7 100644 --- a/src/lib/core/portal/portal.ts +++ b/src/lib/core/portal/portal.ts @@ -56,7 +56,7 @@ export abstract class Portal { /** * Sets the PortalHost reference without performing `attach()`. This is used directly by - * the PortalHost when it is performing an `attach()` or `detatch()`. + * the PortalHost when it is performing an `attach()` or `detach()`. */ setAttachedHost(host: PortalHost) { this._attachedHost = host;