Brandon Aaron schrieb:

Yeah just like most plugins do with their options.
Sure, but ajaxSettings are the default options for the ajax method. It seems like a bad idea to me to nest those defaults.

// ugly:
jQuery.extend(jQuery.ajaxSettings.headers, {
        myHeader: "myValue";
}

And ajaxSetup() is totally useless in that case.

Instead of recursively extending objects I'd really prefer to see a solution that does work without that nesting.

--
Jörn Zaefferer

http://bassistance.de

Reply via email to