Skip to content

Commit 9159368

Browse files
committed
rename scroll in tooltip
1 parent c5223e2 commit 9159368

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
@@ -108,7 +108,7 @@ export class MdTooltip implements OnInit, OnDestroy {
108108
set _deprecatedMessage(v: string) { this.message = v; }
109109

110110
constructor(private _overlay: Overlay,
111-
private _scroll: ScrollDispatcher,
111+
private _scrollDispatcher: ScrollDispatcher,
112112
private _elementRef: ElementRef,
113113
private _viewContainerRef: ViewContainerRef,
114114
private _ngZone: NgZone,
@@ -117,7 +117,7 @@ export class MdTooltip implements OnInit, OnDestroy {
117117
ngOnInit() {
118118
// When a scroll on the page occurs, update the position in case this tooltip needs
119119
// to be repositioned.
120-
this._scroll.scrolled().subscribe(() => {
120+
this._scrollDispatcher.scrolled().subscribe(() => {
121121
if (this._overlayRef) {
122122
this._overlayRef.updatePosition();
123123
}

0 commit comments

Comments
 (0)