jimfog Posted November 5, 2014 Share Posted November 5, 2014 (edited) I am getting the familiar backbone model undefined. I have created a jsbin example here: http://jsbin.com/silajo/15/ In the output pane you will see a calendar....click anywhere so that a popup box appear,enter some data in the input fields. Till that point everything goes well....the event is displayed in the calendar. But if I go yo click the newly created event I get in the console Cannot read property 'isNew' of undefined. This message appears when the parser tries to run the code at line 88: if (!this.model.isNew()) { I know what this message I means but I cannot understand why this emitted. The problem appeared once I updated backbone to the most recent version....1.1.2 I believe it has something to do with binding the view(the view related to popup box) to the model. This view is defined at 78 P.S I want to add that the problem disappears when I refresh the page Edited November 5, 2014 by jimfog Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now