Backbone error, Cannot read property 'c18' of undefined

I'm making a massive multi page backbone site.

I'm sometimes re-using collections and views across multiple pages of the site, as if they were controls. I've now done something which is coming up with errors like this,

Cannot read property 'c18' of undefined

At the moment, the c18 is always the same.

I'm also using backbone relational.

Any ideas anyone?

Answers


I had weird errors happening when a view was closed before it finished rendering. In your case, it could be that a model was removed before a view finished rendering.

In the future, you could debug this by hacking the Backbone code and printing the CID on View and Model initialization (in the constructor). At least this way you'd know what type of object c18 is.


Need Your Help

How to return a value when animation is over

java javafx

What I'm trying to achieve is to return an integer value after an animation is over.

Specific sections with coplot in r

r plot

I coded a coplot function to create a separated graph depending on z. First, is it possible to create graphs depending on specific section of z, say i want a section from 0 to 150, 150 to 200, 200 ...