Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Rodrigo Muñoz
Courses Plus Student 20,171 PointsHTML5 Mobile App: Updating the Backbone.localStorage Event option
In this project we use some old versions of jQuery, jQuery Mobile, Underscore, Backbone and Backbone.localStorage. Right now I was updating the project using the new versions of each library and framework but I'm having no luck when using the localStorage in the Backbone collections. The error I am getting is this line:
this.localStorage.bind('update', function(){
collection.fetch();
})
The error is the following:
Uncaught TypeError: undefined is not a function app.js:114
And these are the details:
Backbone.Collection.extend.initialize app.js:114
e.Collection backbone.js:1
s backbone.js:1
(anonymous function) app.js:339
(anonymous function) app.js:384
Is there a possibility I can get away with this? Do I need to modify any code from Backbone?
2 Answers
IBRAHIM SAMMOUR
Courses Plus Student 45 PointsYOU SOLVED IT ????????????????//
IBRAHIM SAMMOUR
Courses Plus Student 45 PointsI am getting enviroment not support local storage :(
Rodrigo Muñoz
Courses Plus Student 20,171 PointsRodrigo Muñoz
Courses Plus Student 20,171 PointsNo, I started learning Angular.js instead.