inflight check function to see if dfd is still valid.
Usage
function (dfd) (view source)
//Do script cleanup here. We wait for one inflight pass//to make sure we don't get any weird things by trying to remove a script//tag that is part of the call chain (IE 6 has been known to//crash in that case).var _self = dojo.io.script;
var deadScripts = _self._deadScripts;
if(deadScripts && deadScripts.length>0){for(var i = 0; i < deadScripts.length; i++){//Remove the script tag
_self.remove(deadScripts[i]);
}
dojo.io.script._deadScripts = [];
}returntrue;