Error messages show the proper name of the objects
Just try to figure out why some binding wasn't working on my version and came out with this small change
This commit is contained in:
parent
7438ba1eea
commit
61c4a8b635
1 changed files with 2 additions and 2 deletions
|
|
@ -542,10 +542,10 @@ $(function() {
|
|||
try {
|
||||
ko.applyBindings(viewModel, target);
|
||||
} catch (exc) {
|
||||
console.log("Could not apply bindings for additional view model " + viewModel + ": " + exc.message);
|
||||
console.log("Could not apply bindings for additional view model " + viewModel.constructor.name + ": " + exc.message);
|
||||
}
|
||||
} else {
|
||||
console.log("Could not apply binding for view model " + viewModel + ", target does not exist");
|
||||
console.log("Could not apply binding for view model " + viewModel.constructor.name + ", target does not exist");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue