[dojo-contributors] IE6's stack may be smaller than you think
kzyp at dojotoolkit.org
Thu Oct 28 18:58:00 EDT 2010
Following their instructions, does rev 23073 fix the issue? Don't have
an IE6 handy....
On 10/28/2010 4:41 PM, Mark Hays wrote:
> Another group tried to implement CommonJS just a few months back and
> hit the Stack Overflow in IE6 we are encountering with the new
> define() API for the loader (cf #11883):
> In their stupidly trivial example, they declared a recursive function,
> stored it on the window, and then called it. As few as 13 recursive
> calls to this function triggered a Stack Overflow error in IE6.
> On the other hand, when they stored the function in an object hanging
> off the window (read: dojo) the function could be called an
> arbitrarily large number of times recursively without fail.
> I mention this because I noticed we declare define() in a manner
> consistent with their example (we declare this.define where
> this==window), so I am wondering if there is another way to store
> define() so that it doesn't live on the window yet widget files that
> use it can get to it.
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dojo-contributors