Skip to content

Commit

Permalink
rename scroll in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin committed Dec 20, 2016
1 parent 3a607cf commit 95652a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class MdTooltip implements OnInit, OnDestroy {
set _deprecatedMessage(v: string) { this.message = v; }

constructor(private _overlay: Overlay,
private _scroll: ScrollDispatcher,
private _scrollDispatcher: ScrollDispatcher,
private _elementRef: ElementRef,
private _viewContainerRef: ViewContainerRef,
private _ngZone: NgZone,
Expand All @@ -114,7 +114,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();
}
Expand Down

0 comments on commit 95652a6

Please sign in to comment.