-
Notifications
You must be signed in to change notification settings - Fork 422
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
Define getters run twice. setVal is missing on first run. #2230
Comments
Is that bound to a select field? |
Not in the JSBin: http://jsbin.com/ruvako/edit?html,js,console,output It's simply
|
Here is a simpler example: It doesn't seem to happen when you bind directly to the map before the stache binding. The same behavior occurs if you try to read the property before binding it. |
This is due to the |
Instead of the solution for #1915, we should probably observe on the compute and not on the property itself. Basically flip the behavior around. Perhaps |
A more simple test would probably have something like:
Where |
Caused by #2224 |
With the latest version of Can, all of my define getters are getting run twice. On the first run,
setVal
is absent. On the second, it is present.See this JSBin
The text was updated successfully, but these errors were encountered: