Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
chore(all): fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin committed May 15, 2020
1 parent c3a0f9e commit e4eaf17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {Observable} from 'rxjs';
import {ResizeObserverService} from '../services/resize-observer.service';
import {RESIZE_OPTION_BOX, RESIZE_OPTION_BOX_DEFAULT} from '../tokens/resize-option-box';

// TODO switch to Attribute once https://github.com/angular/angular/issues/36479 is fixed
export function boxExtractor({
nativeElement,
}: ElementRef<Element>): ResizeObserverOptions['box'] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export class ResizeObserverService extends Observable<
});
observer.observe(nativeElement, {box});

return () => observer.disconnect;
return () => {
observer.disconnect();
};
});

return this.pipe(share());
Expand Down

0 comments on commit e4eaf17

Please sign in to comment.