Open
Description
$.ajaxSetup({
converters: {
"mycustomtype json": function (result) {
//do stuff
return newresult;
}
}
});
was not working. The solution needed was:
$.ajaxSetup({
contents: {
mycustomtype: /mycustomtype/
},
converters: {
"mycustomtype json": function (result) {
//do stuff
return newresult;
}
}
});
which simply included a contents regex map. Please see http://bugs.jquery.com/ticket/11376 for more information, and ping @addyosmani to see if he's attempted documenting this yet.