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

support a warnOnMissingKey property and temp binding on scopeKey #196

Merged
merged 3 commits into from
Nov 28, 2018

Conversation

justinbmeyer
Copy link
Contributor

@justinbmeyer justinbmeyer commented Nov 16, 2018

This supports lazy reading of values. This is needed to make something like {{# and(this.first, this.second) }} not actually read this.second if this.first is false.

This makes scopeKeyData.initialValue bind if the observable is not already bound.

This is going to be used by canjs/can-stache#632, which will only look at initialValue if it absolutely needs to. If initialValue is read, then the binding will happen.

Ideally, initialValue would not need to be looked at. We would wait until everything is built out and can-view-live binds, but there are places like figuring out if a function or not where this is necessary.

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 this pull request may close these issues.

1 participant