Merge pull request #775 from matobago/patch-1

Error messages show the proper name of the objects
This commit is contained in:
Gina Häußge 2015-02-18 22:03:14 +01:00
commit 578f77a411

View file

@ -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");
}
});