//DO NOT use "this" and expect it to be dojo.io.script.//Add script to list of things that can be removed. if(dfd.ioArgs.canDelete){
dojo.io.script._deadScripts.push(dfd.ioArgs.id);
}if(dfd.ioArgs.json){//Make sure to *not* remove the json property from the//Deferred, so that the Deferred can still function correctly//after the response is received.return dfd.ioArgs.json;
}else{//FIXME: cannot return the dfd here, otherwise that stops//the callback chain in Deferred. So return the ioArgs instead.//This doesn't feel right.return dfd.ioArgs;
}