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
can.view.render update is sometimes `undefined` #360
I propose we add change it to be
The binder is called is called right away and if something updates the value before hookups are run, update will be undefined. This typically happens when a value used in live binding is updated inside of a can.view call, which is a bad thing to do.
A nicer fix is to assign a function to update at https://github.com/bitovi/canjs/blob/master/view/render.js#L261 that updates binding.value to newValue and console.warns that the developer might be shooting themselves in the foot.
This should make things work most of the time.