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

Ticket #11501: setRequestHeaders_use_isArray.diff

File setRequestHeaders_use_isArray.diff, 494 bytes (added by jdalton, 3 months ago)
  • C:/Inetpub/wwwroot/prototype/src/Copy

    old new  
    152152    if (typeof this.options.requestHeaders == 'object') { 
    153153      var extras = this.options.requestHeaders; 
    154154 
    155       if (Object.isFunction(extras.push)) 
     155      if (Object.isArray(extras)) 
    156156        for (var i = 0, length = extras.length; i < length; i += 2)  
    157157          headers[extras[i]] = extras[i+1]; 
    158158      else