refactor(all): strict boolean conditions

This commit is contained in:
Manu Mtz.-Almeida
2018-08-31 18:59:09 +02:00
parent f383ebdf13
commit ba2230510e
96 changed files with 990 additions and 962 deletions

View File

@ -190,7 +190,7 @@ export class Content {
* Scroll to a specified X/Y location in the component
*/
@Method()
async scrollToPoint(x: number | undefined, y: number | undefined, duration = 0): Promise<void> {
async scrollToPoint(x: number | undefined | null, y: number | undefined | null, duration = 0): Promise<void> {
const el = this.scrollEl;
if (duration < 32) {
if (y != null) {