You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If data in {{#data.items}} changes from {} to {items: new can.List()} and then items are inserted in the can.List, live binding does not work.
This is due to the function created by makeEvaluator being only singly bound with:
can.compute(evaluator, null, false, true)
This is a performance improvement. In most cases, just the single value retrieved by the evaluator function is enough to be responding to. However, in this case, we need to not only bind to the evaluator data, but also the "length" property of the list value returned by evaluator.
The text was updated successfully, but these errors were encountered:
If
data
in{{#data.items}}
changes from{}
to{items: new can.List()}
and then items are inserted in thecan.List
, live binding does not work.This is due to the function created by
makeEvaluator
being only singly bound with:This is a performance improvement. In most cases, just the single value retrieved by the
evaluator
function is enough to be responding to. However, in this case, we need to not only bind to theevaluator
data, but also the "length" property of the list value returned by evaluator.The text was updated successfully, but these errors were encountered: