Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Broken live-binding with can.compute if compute is updated with a can.Construct #638
The first commit that shows the broken behavior is 3c386da
Here's a fiddle: http://jsfiddle.net/qYdwR/1182/
Before, we initialized an empty compute by using
Then after some async loading operations are done, it'll update the compute by calling passing in a new Construct with data:
This would then cause the Mustache view to update itself due to live-binding.
However, after this commit, the Mustache doesn't update itself anymore. I dug around briefly and it looks like the "computed" function in compute.js is no longer being called after the can compute update.
I believe this issue is happening in the latest CanJS2 as well.