Skip to content

Commit 607de8f

Browse files
devversionkara
authored andcommitted
chore: fix detach typos in overlay and portal (#1840)
1 parent 83de14f commit 607de8f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/lib/core/overlay/overlay-ref.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export class OverlayRef implements PortalHost {
3333
}
3434

3535
detach(): Promise<any> {
36-
this._detatchBackdrop();
36+
this._detachBackdrop();
3737
return this._portalHost.detach();
3838
}
3939

4040
dispose(): void {
41-
this._detatchBackdrop();
41+
this._detachBackdrop();
4242
this._portalHost.dispose();
4343
}
4444

@@ -101,7 +101,7 @@ export class OverlayRef implements PortalHost {
101101
}
102102

103103
/** Detaches the backdrop (if any) associated with the overlay. */
104-
private _detatchBackdrop(): void {
104+
private _detachBackdrop(): void {
105105
let backdropToDetach = this._backdropElement;
106106

107107
if (backdropToDetach) {

src/lib/core/portal/portal-directives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class PortalHostDirective extends BasePortalHost implements OnDestroy {
9797
return new Map<string, any>();
9898
}
9999

100-
/** Detatches the currently attached Portal (if there is one) and attaches the given Portal. */
100+
/** Detaches the currently attached Portal (if there is one) and attaches the given Portal. */
101101
private _replaceAttachedPortal(p: Portal<any>): void {
102102
if (this.hasAttached()) {
103103
this.detach();

src/lib/core/portal/portal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export abstract class Portal<T> {
5656

5757
/**
5858
* Sets the PortalHost reference without performing `attach()`. This is used directly by
59-
* the PortalHost when it is performing an `attach()` or `detatch()`.
59+
* the PortalHost when it is performing an `attach()` or `detach()`.
6060
*/
6161
setAttachedHost(host: PortalHost) {
6262
this._attachedHost = host;

0 commit comments

Comments
 (0)