-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
observable event handle not binding correctly to DOM #129
Comments
Hey @thaapaniemi, You can access properties of a view like so: But keep in mind that this will only work after the application finished initializing. Have a nice day! |
Whoops sorry, It seems that this is a bug because your way is a "right" way. After taking a first look at your example I think this could be an issue with the views context or the order of execution in this scenerio. I will post here when I'm making progress. |
Hey @thaapaniemi, For now you can modify this line to use |
Thank you for fast response. The quick fix works great with current code for now. |
At least click events don't bind after changing view if observable is changed in code with
App.View('ViewX').value(newVal);
(this.value(newValue)
works).Example: https://github.com/thaapaniemi/jsblocks_i1
What is the "right" way to update the observable from locations where
this
doesn't point to the current View object?The text was updated successfully, but these errors were encountered: