Skip to content

Commit e22b009

Browse files
committed
rename scroll in tooltip
1 parent e727f9e commit e22b009

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

107107
constructor(private _overlay: Overlay,
108-
private _scroll: ScrollDispatcher,
108+
private _scrollDispatcher: ScrollDispatcher,
109109
private _elementRef: ElementRef,
110110
private _viewContainerRef: ViewContainerRef,
111111
private _ngZone: NgZone,
@@ -114,7 +114,7 @@ export class MdTooltip implements OnInit, OnDestroy {
114114
ngOnInit() {
115115
// When a scroll on the page occurs, update the position in case this tooltip needs
116116
// to be repositioned.
117-
this._scroll.scrolled().subscribe(() => {
117+
this._scrollDispatcher.scrolled().subscribe(() => {
118118
if (this._overlayRef) {
119119
this._overlayRef.updatePosition();
120120
}

0 commit comments

Comments
 (0)