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
Empty model displays __!!__ as input values #196
Creating a new User while passing in no data will create an empty User instance. You then pass this empty model instance into the view and because both id and name are undefined, live binding cannot resolve the values you're binding to. There seems to be a bug in CanJS when attr() is used to retrieve an undefined value.
It looks as if it is that special case when using a callback. When doing it synchronously it works as expected:
So it is probably the fragment passed to the callback. We should probably get rid of callback and only use Deferreds but not for 1.1.x releases. Still investigating how to fix this best.