#1018 enhancement
adam.jimenez

prototype 1.6.1 conflict with ext js causing stack overflow error

Reported by adam.jimenez | March 31st, 2010 @ 12:48 PM | in 2.0

Prototype 1.6.1 and ext js both define a defer method and are conflicting.

There is more information on this issue here: http://www.extjs.com/forum/showthread.php?t=78935

Not really a bug in prototype per se but it is causing problems.
Be nice to hear prototype teams thoughts on this.

Comments and changes to this ticket

  • Rob Mills

    Rob Mills April 6th, 2010 @ 11:39 AM

    • State changed from “new” to “enhancement”
    • Milestone set to 2.0

    We’re looking into building solutions to this issue into Prototype 2.0. However, as fixing this involves important changes to our API, we’ll be weighing the benefits and tradeoffs of such changes and can’t guarantee they’ll make it into the final version of Prototype 2.0. Thanks for your understanding and for taking the time to report this issue.

  • Tobie Langel
  • Mario Benito

    Mario Benito April 11th, 2011 @ 12:11 PM

    • Importance changed from “” to “Low”

    Quick patch for the stack overflow issue (prototype 1.7), from line 5832, substitute "defer" with "delay(0.01)":

    
      function pollDoScroll() {
        try { document.documentElement.doScroll('left'); }
        catch(e) {
          timer = pollDoScroll.delay(0.01);
          return;
        }
        fireContentLoadedEvent();
      }
    
      if (document.addEventListener) {
        document.addEventListener('DOMContentLoaded', fireContentLoadedEvent, false);
      } else {
        document.observe('readystatechange', checkReadyState);
        if (window == top)
          timer = pollDoScroll.delay(0.01);
      }
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Pages