jashkenas / backbone

Give your JS App some Backbone with Models, Views, Collections, and Events
http://backbonejs.org
MIT License
28.09k stars 5.39k forks source link

Options no longer accessible in Views #2580

Closed tysonnero closed 11 years ago

tysonnero commented 11 years ago

I recently upgraded from 0.9.9 to 1.0.

It seems that in version 1.0, the options object on a view is no longer existing.

Any code within a view that tries to access this.options.property always fails and this.options is always undefined.

I am using Underscore 1.4.3 and also tried 1.4.4 with no difference. Rolling back to Backbone 0.9.9 makes everything work again.

tysonnero commented 11 years ago

Note: I am experiencing this issue when using the version from this Github repo.

If I use the version from backbonejs.org, it works.

tgriesser commented 11 years ago

@tysonnero yep, it looks like you upgraded to the edge version, not the 1.0.0 release, see #2458 for a bit more info.

tysonnero commented 11 years ago

Awesome.Thanks for the quick response. Also, sorry for the duplicate. I did a search, but for some reason I didn't see the other bug.

tgriesser commented 11 years ago

No problem - sometimes they can be tough to find.