Fixed creating Observable object from nested JSON object.

This commit is contained in:
Nedyalko Nikolov
2016-08-12 15:05:42 +03:00
parent a736bc0ae4
commit 3fc706972f
4 changed files with 52 additions and 12 deletions

View File

@@ -1265,7 +1265,7 @@ export function test_only_Bindable_BindingContext_Null_DoesNotThrow() {
export function test_Observable_from_nested_json_binds_correctly() {
let expectedValue = "Test";
var model = new observable.Observable({
let model = observable.Observable.fromJSONRecursive({
"firstObject": {
"secondObject": {
"dummyProperty": "text"
@@ -1286,7 +1286,7 @@ export function test_Observable_from_nested_json_binds_correctly() {
export function test_Observable_from_nested_json_binds_correctly_when_upper_object_is_changed() {
let expectedValue = "Test";
var model = new observable.Observable({
let model = observable.Observable.fromJSONRecursive({
"firstObject": {
"secondObject": {
"dummyProperty": "text"