From 8aefb136fb022718f9f08b5c5ed7c1fa83d470b2 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Wed, 14 Dec 2016 11:55:28 -0800 Subject: [PATCH] rename scroll in tooltip --- src/lib/tooltip/tooltip.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/tooltip/tooltip.ts b/src/lib/tooltip/tooltip.ts index 9a6c2b789041..1572d84fe6b9 100644 --- a/src/lib/tooltip/tooltip.ts +++ b/src/lib/tooltip/tooltip.ts @@ -95,7 +95,7 @@ export class MdTooltip implements OnInit, OnDestroy { } constructor(private _overlay: Overlay, - private _scroll: ScrollDispatcher, + private _scrollDispatcher: ScrollDispatcher, private _elementRef: ElementRef, private _viewContainerRef: ViewContainerRef, private _ngZone: NgZone, @@ -104,7 +104,7 @@ export class MdTooltip implements OnInit, OnDestroy { ngOnInit() { // When a scroll on the page occurs, update the position in case this tooltip needs // to be repositioned. - this._scroll.scrolled().subscribe(() => { + this._scrollDispatcher.scrolled().subscribe(() => { if (this._overlayRef) { this._overlayRef.updatePosition(); }