bindArgs.callbackParamName="jsonp"; return dojo.io.script.get(bindArgs); } return dojo.xhrPost(bindArgs); 
bindArgs.callbackParamName="jsonp"; r= dojo.io.script.get(bindArgs); } else r = dojo.xhrPost(bindArgs); dojo.publish("/cometd/meta", [{cometd:this,action:"handshake",successful:true,state:this.state()}]); return r; 
	this.init = function(root, props, bargs){		// FIXME: if the root isn't from the same host, we should automatically		// try to select an XD-capable transport		props = props||{};		// go ask the short bus server what we can support		props.version = this.version;		props.minimumVersion = this.minimumVersion;		props.channel = "/meta/handshake";		props.id = ""+this.messageId++;		this.url = root||djConfig["cometdRoot"];		if(!this.url){			console.debug("no cometd root specified in djConfig and no root passed");			return;		}		// Are we x-domain? borrowed from dojo.uri.Uri in lieu of fixed host and port properties		var regexp = "^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";		var r = (""+window.location).match(new RegExp(regexp));		if(r[4]){			var tmp = r[4].split(":");			var thisHost = tmp[0];			var thisPort = tmp[1]||"80"; // FIXME: match 443			r = this.url.match(new RegExp(regexp));			if(r[4]){				tmp = r[4].split(":");				var urlHost = tmp[0];				var urlPort = tmp[1]||"80";				this._isXD = ((urlHost != thisHost)||(urlPort != thisPort));			}		}		if(!this._isXD){			if(props.ext){				if(props.ext["json-comment-filtered"]!==true && props.ext["json-comment-filtered"]!==false){					props.ext["json-comment-filtered"] = true;				}			}else{				props.ext = { "json-comment-filtered": true };			}		} 		var bindArgs = {			url: this.url,			handleAs: this.handleAs,			content: { "message": dojo.toJson([props]) },			load: dojo.hitch(this, "finishInit"),			error: function(e){ console.debug("handshake error!:", e); }		};		if(bargs){			dojo.mixin(bindArgs, bargs);		}		this._props=props;		this._initialized=true;		this.batch=0;		this.startBatch();				// if xdomain, then we assume jsonp for handshake		if(this._isXD){			bindArgs.callbackParamName="jsonp";			return dojo.io.script.get(bindArgs);		}		return dojo.xhrPost(bindArgs);	}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/4cd022665475a0b318d3210b38e7eaca6874c8dc/cometd.js/buggy/_cometd/cometd.js