Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling fromJS to amend an existing model with an ObservableArray fails #206

Open
dgee2 opened this issue Jul 21, 2015 · 0 comments
Open

Comments

@dgee2
Copy link

dgee2 commented Jul 21, 2015

Hi,

Calling fromJS to amend an existing model with an ObservableArray fails with an "Out of Stack Trace" exception. This has been traced back to the merge call in fromJS which in turn calls extendObject.

Example:

var model = function () {
    var Checkboxes = ko.mapping.fromJS({
        Funds: []
    });
    return ko.mapping.fromJS({
        Checkboxes: Checkboxes
    });
}();
ko.mapping.fromJS({ Funds: [{ t: 15 }] }, model.Checkboxes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant