Skip to content
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

"Unable to process binding" error message should not contain the wrappnig function #1632

Closed
mariusGundersen opened this issue Nov 24, 2014 · 4 comments

Comments

@mariusGundersen
Copy link
Contributor

If you have an error in your binding, like referring to a non-existing value, then the error message produced does not match what was enterd in the binding. For example, the binding data-bind="text: notDefinedInViewModel" will produce the error:

Uncaught ReferenceError: Unable to process binding "text: function(){ return notDefinedInViewModel }"
Message: notDefinedInViewModel is not defined

This is slightly confusing, since the function wrapping the value of the binding was added by Knockout, not by the developer. It would therefore be great if the binding value was unwrapped, so it produced an error like this:

Uncaught ReferenceError: Unable to process binding "text: notDefinedInViewModel"
Message: notDefinedInViewModel is not defined "
@brianmhunt
Copy link
Member

Related: #1628

@brianmhunt
Copy link
Member

Closing this (re. comment in #1633), but as noted there - if there's anything outstanding, we can re-open. Cheers.

@9560026742ravi
Copy link

Uncaught ReferenceError: email is not defined
Uncaught ReferenceError: Unable to process binding "submit: function (){return firstTimeLoginData }"
Message: firstTimeLoginData is not defined

@9560026742ravi
Copy link

email is the id of parent html page and same id is coming to child html .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants