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:
Marcel 2015-02-18 12:07:36 -08:00
parent 7438ba1eea
commit 61c4a8b635

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