Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught RangeError: Maximum call stack size exceeded #180

Closed
worldjoe opened this issue Oct 25, 2013 · 2 comments
Closed

Uncaught RangeError: Maximum call stack size exceeded #180

worldjoe opened this issue Oct 25, 2013 · 2 comments

Comments

@worldjoe
Copy link

I'm using version 0.8.2
I get this error:
Uncaught RangeError: Maximum call stack size exceeded
.each..forEach
Backbone.Validation.flatten
(anonymous function)
.each..forEach
Backbone.Validation.flatten
(anonymous function)
.each..forEach

I made a change in my backbone model to fix the error. My initialize function had this line of code:
this.bind("change:selfIdentifiedInsuranceKind", this.save)

I changed it to this:
this.bind("change:selfIdentifiedInsuranceKind", this.selfId)

And I created a selfID like so:

selfId : function(){
this.save();
},

This was all in conjunction with backbone.localstorage, so I'm not sure if fetch(), save() was causing issues with backbone.validation. Suffice to say the code change, in my code, above fixed the problem. I'd guess you could reproduce by adding a this.bind with a this.save reference in your own project's model.

@chiefGui
Copy link
Collaborator

Have you tried with our latest version (0.9.1)? If so, the problem continues?

@chiefGui
Copy link
Collaborator

Fixed by #260.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants