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 14, 2016
1 parent 334aad7 commit 8aefb13
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 @@ -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,
Expand All @@ -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();
}
Expand Down

0 comments on commit 8aefb13

Please sign in to comment.