Question

Problem

I am navigating to a link which is activating my controller. The maximum call stack is exceeded when executing the line: @log(Model.all()) within my controller.

Model.all() has 0 records The controller is 28 functions in 4 classes, over 200 lines

Questions

  • What is a call stack in Spine/JS terms: is it a function? a class? a module?
  • Are the call stack limits imposed by the Browser,JS, JQuery or Spine? possible browser limits
  • Is this a common problem, and if so how can I avoid it while using Spine JS?
Was it helpful?

Solution

If you remove that line the app keeps working?

Otherwise I think with that little classes / functions it's more likely to be an issue with your code. I think some function keeps calling itself which causes the stacksize to become too big.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top