rem: dojo.event=new function(){ this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]); function interpolateArgs(args,_2e7){ var dl=dojo.lang; var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false}; switch(args.length){ case 0: 
add: dojo.io.XMLHTTPTransport=new function(){ var _29f=this; var _2a0={}; this.useCache=false; this.preventCache=false; function getCacheKey(url,_2a2,_2a3){ return url+"|"+_2a2+"|"+_2a3.toLowerCase(); } function addToCache(url,_2a5,_2a6,http){ _2a0[getCacheKey(url,_2a5,_2a6)]=http; } function getFromCache(url,_2a9,_2aa){ return _2a0[getCacheKey(url,_2a9,_2aa)]; } this.clearCache=function(){ _2a0={}; }; function doLoad(_2ab,http,url,_2ae,_2af){ if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){ var ret; if(_2ab.method.toLowerCase()=="head"){ var _2b1=http.getAllResponseHeaders(); ret={}; ret.toString=function(){ return _2b1; }; var _2b2=_2b1.split(/[\r\n]+/g); for(var i=0;i<_2b2.length;i++){ var pair=_2b2[i].match(/^([^:]+)\s*:\s*(.+)$/i); if(pair){ ret[pair[1]]=pair[2]; } } }else{ if(_2ab.mimetype=="text/javascript"){ try{ ret=dj_eval(http.responseText); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=null; } }else{ if(_2ab.mimetype=="text/json"||_2ab.mimetype=="application/json"){ try{ ret=dj_eval("("+http.responseText+")"); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=false; } }else{ if((_2ab.mimetype=="application/xml")||(_2ab.mimetype=="text/xml")){ ret=http.responseXML; if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){ ret=dojo.dom.createDocumentFromText(http.responseText); } }else{ ret=http.responseText; } } } } if(_2af){ addToCache(url,_2ae,_2ab.method,http); } _2ab[(typeof _2ab.load=="function")?"load":"handle"]("load",ret,http,_2ab); }else{ var _2b5=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText); _2ab[(typeof _2ab.error=="function")?"error":"handle"]("error",_2b5,http,_2ab); } } function setHeaders(http,_2b7){ if(_2b7["headers"]){ for(var _2b8 in _2b7["headers"]){ if(_2b8.toLowerCase()=="content-type"&&!_2b7["contentType"]){ _2b7["contentType"]=_2b7["headers"][_2b8]; }else{ http.setRequestHeader(_2b8,_2b7["headers"][_2b8]); } } } } this.inFlight=[]; this.inFlightTimer=null; this.startWatchingInFlight=function(){ if(!this.inFlightTimer){ this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10); } }; this.watchInFlight=function(){ var now=null; if(!dojo.hostenv._blockAsync&&!_29f._blockAsync){ for(var x=this.inFlight.length-1;x>=0;x--){ try{ var tif=this.inFlight[x]; if(!tif||tif.http._aborted||!tif.http.readyState){ this.inFlight.splice(x,1); continue; } if(4==tif.http.readyState){ this.inFlight.splice(x,1); doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache); }else{ if(tif.startTime){ if(!now){ now=(new Date()).getTime(); } if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){ if(typeof tif.http.abort=="function"){ tif.http.abort(); } this.inFlight.splice(x,1); tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req); } } } } catch(e){ try{ var _2bc=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e); tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_2bc,tif.http,tif.req); } catch(e2){ dojo.debug("XMLHttpTransport error callback failed: "+e2); } } } } clearTimeout(this.inFlightTimer); if(this.inFlight.length==0){ this.inFlightTimer=null; 
context: dojo.event=new function(){this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);function interpolateArgs(args,_2e7){var dl=dojo.lang;var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};switch(args.length){case 0:return;case 1:return;case 2:ao.srcFunc=args[0];ao.adviceFunc=args[1];break;case 3:if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){ao.adviceType="after";ao.srcObj=args[0];ao.srcFunc=args[1];ao.adviceFunc=args[2];}else{if((dl.isString(args[1]))&&(dl.isString(args[2]))){ao.srcFunc=args[1];ao.adviceFunc=args[2];}else{if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){ao.adviceType="after";ao.srcObj=args[0];ao.srcFunc=args[1];var _2ea=dl.nameAnonFunc(args[2],ao.adviceObj,_2e7);ao.adviceFunc=_2ea;}else{if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){ao.adviceType="after";ao.srcObj=dj_global;var _2ea=dl.nameAnonFunc(args[0],ao.srcObj,_2e7);ao.srcFunc=_2ea;ao.adviceObj=args[1];ao.adviceFunc=args[2];}}}}break;case 4:if((dl.isObject(args[0]))&&(dl.isObject(args[2]))){ao.adviceType="after";ao.srcObj=args[0];ao.srcFunc=args[1];ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{if((dl.isString(args[0]))&&(dl.isString(args[1]))&&(dl.isObject(args[2]))){ao.adviceType=args[0];ao.srcObj=dj_global;ao.srcFunc=args[1];ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{if((dl.isString(args[0]))&&(dl.isFunction(args[1]))&&(dl.isObject(args[2]))){ao.adviceType=args[0];ao.srcObj=dj_global;var _2ea=dl.nameAnonFunc(args[1],dj_global,_2e7);ao.srcFunc=_2ea;ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{if((dl.isString(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))&&(dl.isFunction(args[3]))){ao.srcObj=args[1];ao.srcFunc=args[2];var _2ea=dl.nameAnonFunc(args[3],dj_global,_2e7);ao.adviceObj=dj_global;ao.adviceFunc=_2ea;}else{if(dl.isObject(args[1])){ao.srcObj=args[1];ao.srcFunc=args[2];ao.adviceObj=dj_global;ao.adviceFunc=args[3];}else{if(dl.isObject(args[2])){ao.srcObj=dj_global;ao.srcFunc=args[1];ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;ao.srcFunc=args[1];ao.adviceFunc=args[2];ao.aroundFunc=args[3];}}}}}}break;case 6:ao.srcObj=args[1];ao.srcFunc=args[2];ao.adviceObj=args[3];ao.adviceFunc=args[4];ao.aroundFunc=args[5];ao.aroundObj=dj_global;break;default:ao.srcObj=args[1];ao.srcFunc=args[2];ao.adviceObj=args[3];ao.adviceFunc=args[4];ao.aroundObj=args[5];ao.aroundFunc=args[6];ao.once=args[7];ao.delay=args[8];ao.rate=args[9];ao.adviceMsg=args[10];break;}if(dl.isFunction(ao.aroundFunc)){var _2ea=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2e7);ao.aroundFunc=_2ea;}if(dl.isFunction(ao.srcFunc)){ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);}if(dl.isFunction(ao.adviceFunc)){ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);}if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);}if(!ao.srcObj){dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);}if(!ao.adviceObj){dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);}if(!ao.adviceFunc){dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc);dojo.debugShallow(ao);}return ao;}this.connect=function(){if(arguments.length==1){var ao=arguments[0];}else{var ao=interpolateArgs(arguments,true);}if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){if(dojo.render.html.ie){ao.srcFunc="onkeydown";this.connect(ao);}ao.srcFunc="onkeypress";}if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){var _2ec={};for(var x in ao){_2ec[x]=ao[x];}var mjps=[];dojo.lang.forEach(ao.srcObj,function(src){if((dojo.render.html.capable)&&(dojo.lang.isString(src))){src=dojo.byId(src);}_2ec.srcObj=src;mjps.push(dojo.event.connect.call(dojo.event,_2ec));});return mjps;}var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);if(ao.adviceFunc){var mjp2=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc);}mjp.kwAddAdvice(ao);return mjp;};this.log=function(a1,a2){var _2f4;if((arguments.length==1)&&(typeof a1=="object")){_2f4=a1;}else{_2f4={srcObj:a1,srcFunc:a2};}_2f4.adviceFunc=function(){var _2f5=[];for(var x=0;x<arguments.length;x++){_2f5.push(arguments[x]);}dojo.debug("("+_2f4.srcObj+")."+_2f4.srcFunc,":",_2f5.join(", "));};this.kwConnect(_2f4);};this.connectBefore=function(){var args=["before"];for(var i=0;i<arguments.length;i++){args.push(arguments[i]);}return this.connect.apply(this,args);};this.connectAround=function(){var args=["around"];for(var i=0;i<arguments.length;i++){args.push(arguments[i]);}return this.connect.apply(this,args);};this.connectOnce=function(){var ao=interpolateArgs(arguments,true);ao.once=true;return this.connect(ao);};this._kwConnectImpl=function(_2fc,_2fd){var fn=(_2fd)?"disconnect":"connect";if(typeof _2fc["srcFunc"]=="function"){_2fc.srcObj=_2fc["srcObj"]||dj_global;var _2ff=dojo.lang.nameAnonFunc(_2fc.srcFunc,_2fc.srcObj,true);_2fc.srcFunc=_2ff;}if(typeof _2fc["adviceFunc"]=="function"){_2fc.adviceObj=_2fc["adviceObj"]||dj_global;var _2ff=dojo.lang.nameAnonFunc(_2fc.adviceFunc,_2fc.adviceObj,true);_2fc.adviceFunc=_2ff;}_2fc.srcObj=_2fc["srcObj"]||dj_global;_2fc.adviceObj=_2fc["adviceObj"]||_2fc["targetObj"]||dj_global;_2fc.adviceFunc=_2fc["adviceFunc"]||_2fc["targetFunc"];return dojo.event[fn](_2fc);};this.kwConnect=function(_300){return this._kwConnectImpl(_300,false);};this.disconnect=function(){if(arguments.length==1){var ao=arguments[0];}else{var ao=interpolateArgs(arguments,true);}if(!ao.adviceFunc){return;}if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){if(dojo.render.html.ie){ao.srcFunc="onkeydown";this.disconnect(ao);}ao.srcFunc="onkeypress";}var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);};this.kwDisconnect=function(_303){return this._kwConnectImpl(_303,true);};};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dojo.js/buggy/www/resources/dojo-ajax/dojo.js