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 livebinding after replace can.Map property or remove property #525
i have some interesting behaviour that brokes down the livebinding with mustache and can.Map
i have a simple template with deep properties
this will shows the right.. but after a second time and an other object replace the "test" there is no livebinding anymore
same procedure if i want to remove "test" with deep properties
added a commit
Nov 6, 2013
I know this issue has been closed, but after the changes in this commit, our compute no longer works the way it did.
Here's a fiddle: http://jsfiddle.net/qYdwR/1180/
Before, we initialized an empty compute by using
Then after some async operations are done, it'll update the compute by calling
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.