chore: fix detach typos in overlay and portal (#1840)

This commit is contained in:
Paul Gschwendtner
2016-11-15 04:14:01 +01:00
committed by Kara
parent 83de14f827
commit 607de8f3da
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -33,12 +33,12 @@ export class OverlayRef implements PortalHost {
}
detach(): Promise<any> {
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) {
+1 -1
View File
@@ -97,7 +97,7 @@ export class PortalHostDirective extends BasePortalHost implements OnDestroy {
return new Map<string, any>();
}
/** 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<any>): void {
if (this.hasAttached()) {
this.detach();
+1 -1
View File
@@ -56,7 +56,7 @@ export abstract class Portal<T> {
/**
* 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;