sproutcore/sproutcore20 — Issue #218: BPM sproutcore-metal package with JQuery UI and FF3 = "too much recursion"
Author: christophersansone
Created: 2011-11-23 15:37:47+00:00
State: open

I'm not sure where to file this issue... it seems more like a problem with the BPM package, but there was no place on getbpm.org to file this.

If you have a project using Sproutcore with BPM and jQuery UI 1.8.x, FF3 will throw a "too much recursion" Javascript error every time the page is loaded. It is definitely not jQuery itself or some sort of incompatible version built within the Sproutcore package: I verified this by copying jQuery out of the package and into its own file, loading it without BPM, and it works perfectly.

The error specifically occurs when the jQuery UI "Tabs" widget is being registered: the call to jQuery.extend() appears to happen recursively in FF3. Removing the Tabs widget fixes the problem as well.

The problem must have something to do with how jQuery is loaded via BPM.

To reproduce it:

1. Create a new BPM project and add "sproutcore" as a dependency.
2. Download the latest JQuery UI 1.8.x and add it to your BPM project.
3. In main.js, require both "sproutcore" and the JQuery UI file, in that order.
4. Open in FF3 and watch it fail.

Thanks a lot... I only wish I could provide more help in fixing it.