Skip to content

Commit

Permalink
Merge branch '1.1.0' of https://github.com/riganti/dotvvm into 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
quigamdev committed Oct 27, 2017
2 parents 55f2a3e + 493e9ac commit b287040
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class DotvvmSerialization {
result[prop](deserialized());
}
} else {
result[prop] = ko.observable(ko.unwrap(deserialized)); // don't reuse the same observable from the source
const unwrapped = ko.unwrap(deserialized);
result[prop] = Array.isArray(unwrapped) ? ko.observableArray(unwrapped) : ko.observable(unwrapped); // don't reuse the same observable from the source
}
} else {
if (ko.isObservable(result[prop])) {
Expand Down
95 changes: 48 additions & 47 deletions src/DotVVM.Framework/Resources/Scripts/DotVVM.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/DotVVM.Framework/Resources/Scripts/DotVVM.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/DotVVM.Framework/Resources/Scripts/DotVVM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,8 @@ class DotVVM {
};

ko.bindingHandlers["dotvvm-CheckState"] = {
init(element, valueAccessor, allBindings) {
ko.getBindingHandler("checked").init(element, valueAccessor, allBindings);
init(element, valueAccessor, allBindings, viewModel, bindingContext) {
ko.getBindingHandler("checked").init(element, valueAccessor, allBindings, viewModel, bindingContext);
},
update(element, valueAccessor, allBindings) {
let value = ko.unwrap(valueAccessor());
Expand Down

0 comments on commit b287040

Please sign in to comment.