Merge pull request #415 from NativeScript/feature/background-fix

Fix: Null check in background.isEmpty()
This commit is contained in:
Alexander Vakrilov
2015-07-10 13:50:12 +03:00

View File

@ -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 {