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

Ticket #9226: fix_ajax_request_complete.diff

File fix_ajax_request_complete.diff, 491 bytes (added by bgreenlee, 1 year ago)

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

  • src/ajax.js

    old new  
    7373  ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete']; 
    7474 
    7575Ajax.Request.prototype = Object.extend(new Ajax.Base(), { 
    76   _complete: false, 
    77    
    7876  initialize: function(url, options) { 
     77    this._complete = false, 
    7978    this.transport = Ajax.getTransport(); 
    8079    this.setOptions(options); 
    8180    this.request(url);