Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9226 (new defect)

Opened 9 months ago

Last modified 1 month ago

[PATCH] Ajax.Request _complete flag not being reset

Reported by: bgreenlee Assigned to: sam
Priority: normal Milestone: 2.x
Component: Prototype Version: edge
Severity: major Keywords:
Cc:

Description

I noticed when upgrading our app from Prototype 1.5.0_rc0 to 1.5.1.1 that our RJS broke--JS returned by Ajax.Requests was not getting evaled. It turned out to be because the _complete flag was not getting reset to false. I can't seem to reproduce this issue in the tests, but it happens if you have more than one Ajax.Request on a page. Moving the initialization of _complete into initialize solves this problem.

Attachments

fix_ajax_request_complete.diff (491 bytes) - added by bgreenlee on 08/09/07 13:32:13.
patch to move initialization of _complete in Ajax.Request to initialize

Change History

08/09/07 13:32:13 changed by bgreenlee

  • attachment fix_ajax_request_complete.diff added.

patch to move initialization of _complete in Ajax.Request to initialize

04/17/08 05:25:45 changed by jdalton

Can you retest with Prototype 1.6.0.2?