-
Notifications
You must be signed in to change notification settings - Fork 93
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
$update not being triggered/called #160
Comments
Yes that's by design. Note that these variables on their own are literally just variables. So for example if you write:
Cell uses this variable to construct the DOM, but it doesn't just magically re-assign the generated node into the variable The flexibility of Cell means you can write as many variables as you want but at the end of the day the only variable that gets turned into a node is the one with the And these variables can utilize other variables to define themselves. For example:
Now let's imagine for a moment what you were asking was possible. How would that work? If you try to call This is why by design you can't use the original gene object to refer to the node. In fact if you do To query the nodes, you should use That said, I do understand where you're coming from (there's gotta be a cleaner way than calling |
I was hoping that this code example would trigger the $update function but it does not. Notice that I'm using the variable found in $init and not querying for the element.
Would it be possible to add this?
Is this by design?
https://gist.github.com/snaveevans/2c1a03abc9cc75d8834e14c33f0c5a1a
The text was updated successfully, but these errors were encountered: