didn't someone post a version jQuery.extend that could act recursively on
nested objects?

On 4/10/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:


Yeah just like most plugins do with their options.

--
Brandon Aaron

On 4/10/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
>
> Jörn,
>
> >> 462  ajaxSettings: {
> >> 463    global: true,
> >> 464    type: "GET",
> >> 465    timeout: 0,
> >> 466    contentType: "application/x-www-form-urlencoded",
> >> 467    processData: true,
> >> 468    async: true,
> >> 469    data: null,
> >> 470    headers: {"X-Requested-With": "XMLHttpRequest"}
> >> 471  },
> >>
> >Now you have to explicitly extend the headers object to add additional
> >global headers. Otherwise you'd overwrite the x-requested-with header,
> >and that could be really hard to find.
>
> You could change headers to defaultHeaders and have headers extend the
> defaultHeaders. That I think would solve the issue...
>
> -Dan
>
>




--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com

Reply via email to