Null check

This commit is contained in:
vakrilov
2015-07-10 11:52:30 +03:00
parent 7c6897bef7
commit 460abb7c74

View File

@ -165,7 +165,7 @@ export class Background implements dts.Background {
}
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 {