context: dojo.io.bind = function(/*Object*/ request){	// summary:	//		Binding interface for IO. Loading different IO transports, like	//		dojo.io.BrowserIO or dojo.io.IframeIO will register with bind	//		to handle particular types of bind calls.	//		request:	//				Object containing bind arguments. This object is converted to	//				a dojo.io.Request object, and that request object is the return	//				value for this method.	if(!(request instanceof dojo.io.Request)){		try{			request = new dojo.io.Request(request);		}catch(e){ dojo.debug(e); }	}	// if the request asks for a particular implementation, use it	var tsName = "";	if(request["transport"]){		tsName = request["transport"];		if(!this[tsName]){			dojo.io.sendBindError(request, "No dojo.io.bind() transport with name '"				+ request["transport"] + "'.");			return request; //dojo.io.Request		}		if(!this[tsName].canHandle(request)){			dojo.io.sendBindError(request, "dojo.io.bind() transport with name '"				+ request["transport"] + "' cannot handle this type of request.");			return request;	//dojo.io.Request		}	}else{		// otherwise we do our best to auto-detect what available transports		// will handle 		for(var x=0; x<dojo.io.transports.length; x++){			var tmp = dojo.io.transports[x];			if((this[tmp])&&(this[tmp].canHandle(request))){				tsName = tmp;				break;			}		}		if(tsName == ""){			dojo.io.sendBindError(request, "None of the loaded transports for dojo.io.bind()"				+ " can handle the request.");			return request; //dojo.io.Request		}	}	this[tsName].bind(request);	request.bindSuccess = true;	return request; //dojo.io.Request}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/common.js/clean/www/resources/dojo-ajax/src/io/common.js