Skip to content

Commit 5957eee

Browse files
committed
fix some comments
1 parent a81287f commit 5957eee

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/cdk/overlay/position/connected-position-strategy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,14 @@ export class ConnectedPositionStrategy implements PositionStrategy {
9999
this._pane = overlayRef.overlayElement;
100100
}
101101

102-
/** To be used to for any cleanup after the element gets destroyed. */
102+
/** Performs any cleanup after the element is destroyed. */
103103
dispose() { }
104104

105105
/**
106106
* Updates the position of the overlay element, using whichever preferred position relative
107107
* to the origin fits on-screen.
108108
* @docs-private
109109
*
110-
* @param element Element to which to apply the CSS styles.
111110
* @returns Resolves when the styles have been applied.
112111
*/
113112
apply(): void {

src/cdk/overlay/position/global-position-strategy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ export class GlobalPositionStrategy implements PositionStrategy {
168168
parentStyles.alignItems = this._alignItems;
169169
}
170170

171-
/**
172-
* Removes the wrapper element from the DOM.
173-
*/
171+
/** Removes the wrapper element from the DOM. */
174172
dispose(): void {
175173
if (this._wrapper && this._wrapper.parentNode) {
176174
this._wrapper.parentNode.removeChild(this._wrapper);

0 commit comments

Comments
 (0)