'params' should not overwrite existing observables with an empty value #159

kevinsimper opened this Issue Feb 11, 2014 · 0 comments


None yet

1 participant


Right now if you define a page with the params parameter, it will overwrite the current values even if the url parameter is not their.

So this:
this.name = ko.observable('Kevin');
with this:
<div data-bind="page: {id: 'existingcustomer', withOnShow: requireVM('existingCustomer'), sourceOnShow: '../Documents/existing.html', params: ['name']}"></div>

And a plain URL like this:

would set the value of this.name to undefined instead of Kevin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment