mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Merge pull request #415 from NativeScript/feature/background-fix
Fix: Null check in background.isEmpty()
This commit is contained in:
@ -165,7 +165,7 @@ export class Background implements dts.Background {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public isEmpty(): boolean {
|
public isEmpty(): boolean {
|
||||||
return types.isUndefined(this.image) && types.isUndefined(this.color);
|
return types.isNullOrUndefined(this.image) && types.isNullOrUndefined(this.color);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static equals(value1: Background, value2: Background): boolean {
|
public static equals(value1: Background, value2: Background): boolean {
|
||||||
|
Reference in New Issue
Block a user