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 https://github.com/canjs/can-stache/pull/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.
This supports lazy reading of values. This is needed to make something like
{{# and(this.first, this.second) }}
not actually readthis.second
ifthis.first
is false.This makes
scopeKeyData.initialValue
bind if the observable is not already bound.This is going to be used by https://github.com/canjs/can-stache/pull/632, which will only look at
initialValue
if it absolutely needs to. IfinitialValue
is read, then the binding will happen.Ideally,
initialValue
would not need to be looked at. We would wait until everything is built out andcan-view-live
binds, but there are places like figuring out if a function or not where this is necessary.