This project is archived and is in readonly mode.

#1049 ✓invalid
Grygir

Modifications request headers using options parameter

Reported by Grygir | October 20th, 2010 @ 09:47 AM | in 1.4.0 (closed)

Hi.

I used to modify headers for Element.send() by options parameter.
As:

this._elem.set('send', {
    url:'/cgi-bin/form.php',
    headers:{ajaxAction:this._getAjaxAction()},
    onRequest:this.onRequest.bind(this),
    onComplete:this.onComplete.bind(this)
}).send();

But after updating Mootools core to v1.3 from v1.2.4 I can't.
I need to use that code, in oder to fix it:

this._elem.set('send', {
    url:'/cgi-bin/form.php',
    onRequest:this.onRequest.bind(this),
    onComplete:this.onComplete.bind(this)
}).get('send').setHeader('ajaxAction',this._getAjaxAction()).send();

Although in documentation written header is still available in options.

Is it deprecated way to modify headers, or is it mistake?

Thank you.

Comments and changes to this ticket

Create your profile

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

Shared Ticket Bins

Referenced by

Pages