Skip to content

Commit 8aefb13

Browse files
committed
rename scroll in tooltip
1 parent 334aad7 commit 8aefb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/tooltip/tooltip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class MdTooltip implements OnInit, OnDestroy {
9595
}
9696

9797
constructor(private _overlay: Overlay,
98-
private _scroll: ScrollDispatcher,
98+
private _scrollDispatcher: ScrollDispatcher,
9999
private _elementRef: ElementRef,
100100
private _viewContainerRef: ViewContainerRef,
101101
private _ngZone: NgZone,
@@ -104,7 +104,7 @@ export class MdTooltip implements OnInit, OnDestroy {
104104
ngOnInit() {
105105
// When a scroll on the page occurs, update the position in case this tooltip needs
106106
// to be repositioned.
107-
this._scroll.scrolled().subscribe(() => {
107+
this._scrollDispatcher.scrolled().subscribe(() => {
108108
if (this._overlayRef) {
109109
this._overlayRef.updatePosition();
110110
}

0 commit comments

Comments
 (0)