Fixed issue with nested observables when null is given as property value.

This commit is contained in:
Nedyalko Nikolov
2016-08-30 12:37:06 +03:00
parent 501c357fca
commit cb9d974fba
2 changed files with 20 additions and 13 deletions

View File

@@ -534,4 +534,11 @@ export function test_NestedObservablesWithObservableArrayShouldNotCrash() {
secondProp: someObservableArray
});
TKUnit.assert(testObservable !== undefined);
}
export function test_NestedObservableWithNullShouldNotCrash() {
let testObservable = observable.fromObjectRecursive({
someProperty: null
});
TKUnit.assert(testObservable !== undefined);
}