mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Null check
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