Skip to content

Uncaught RangeError: Maximum call stack size exceeded #180

@worldjoe

Description

@worldjoe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions