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
I tried using backbone.select, but noticed it didn't function properly in my project, so I set up a bare bones example using your "introductory example", but it still doesn't work unfortunately.
I get the following in the console:
"error"
"TypeError: Cannot read property 'id' of undefined
at http://run.jsbin.com/runner:24:58"
which points to the statement console.log( collection.selected.id );
And this console.log( m1.selected ); outputs undefined as well.
The text was updated successfully, but these errors were encountered:
I just had a look and indeed, Backbone.Select breaks if you use it in conjunction with Underscore 1.7.0. That is an Underscore issue, though, because 1.7.0 has broken tons of stuff and has been a disaster from start to finish. Have a look at jashkenas/underscore#1805 and cry.
The situation hasn't really improved since. Jeremy Ashkenas hasannounced that 1.7.0 is going to be reverted. But that was four weeks ago, and it still hasn't happened. He hasn't publicly retracted that announcement, either.
So the situation is pretty confused. I won't adapt Backbone.Select to new Underscore versions until this mess is sorted out. Please stick to Underscore 1.6.0 for now if you'd like to use Backbone.Select. (Probably a good idea anyway.)
If you use Bower, npm or Browserify to manage your dependencies, they will do the right thing. Unfortunately, there isn't really anything else I can do at the moment.
I tried using backbone.select, but noticed it didn't function properly in my project, so I set up a bare bones example using your "introductory example", but it still doesn't work unfortunately.
I get the following in the console:
which points to the statement
console.log( collection.selected.id );
And this
console.log( m1.selected );
outputsundefined
as well.The text was updated successfully, but these errors were encountered: