[Prototype-core] Re: Element.fire -> Starck Overflow

2009-07-21 Thread Luisgo
Samuel, yup... that is pretty much what was happening. It had nothing to do with Prototype. Check out the code below: START CODE / 1 var MyLibrary = {}; 2 Object.extend( MyLibrary, { 3 Element : { 4 fireEvent:function( element, event ) { 5

[Prototype-core] Re: Element.fire -> Starck Overflow

2009-07-21 Thread Samuel Lebeau
Firing an event inside a handler can cause stack overflow if the handler is observing events from the same type. Even in more complex cases like (pseudocode) : observe("a", fireBEvent) observe("b", fireAEvent) fireAEvent(); // -> stack overflow Envoyé depuis mon téléphone / Sent from

[Prototype-core] Re: Element.fire -> Starck Overflow

2009-07-20 Thread Tobie Langel
Nope. Using it in production in various apps without issues. You might want to make a reduced failing testcase and submit it to the Prototype mailing list[1]. Best, Tobie [1] http://groups.google.com/group/prototype-scriptaculous On Jul 20, 8:25 pm, Luisgo wrote: > Has anyone experienced Sta