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

"RangeError: Maximum call stack size exceeded" when destroying twice the same model #157

Open
ncortines opened this issue Oct 8, 2014 · 2 comments

Comments

@ncortines
Copy link

Hi,

The issue is easy to reproduce. Simply invoke "destroy" twice in the same model.

I'm not saying it is correct invoking "destroy" twice on the same model, but in my opinion this should be better handled.

Thanks

@jeromegn
Copy link
Owner

jeromegn commented Oct 8, 2014

You're right. This command should be a noop after the first successful run or it should return a proper error.

@killtheliterate
Copy link

I just ran into this problem as well, though I cannot track down where multiple calls to destroy are happening. I have a remove listener set up on a collection which calls the destroy method on the removed model, and then everything goes crazy and I have a stack overflow.

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

No branches or pull requests

4 participants