-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
showAllMessages fix isModified access #269
Comments
Hi, I had similar problem: ko.utils.arrayForEach(validatables(), function (observable) { // for some reasons sometimes: observable.isModified = true // and code is trying to execute: true(show) // guard below is stopping this from happening. This is a knockout issue. if (!!observable && typeof (observable.isModified) == "function") { observable.isModified(show); } }); |
@sagasu It would be great if you could provide information about your view model. It will help a lot in correcting the problem. We can't just put some |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, seems like the method showAllMessages, while trying to iterate over all validatables contains some objects not implementing isModified, which throws an undefined exception.
Dunno where these other objects come from, so my fix proposal would be to simply test against undefined.
E.g.
The text was updated successfully, but these errors were encountered: