if(this._cometd._polling){ return; } 
if(this._cometd._polling){ return; } 
dojox.cometd.callbackPollTransport = new function(){	this._connectionType = "callback-polling";	this._cometd = null;	this.lastTimestamp = null;	this.check = function(types, version, xdomain){		// we handle x-domain!		return (dojo.indexOf(types, "callback-polling") >= 0);	}	this.tunnelInit = function(){		if(this._cometd._polling){ return; }		this.openTunnelWith({			message: dojo.toJson([				{					channel:	"/meta/connect",					clientId:	this._cometd.clientId,					connectionType: this._connectionType,					id:		""+this._cometd.messageId++				}			])		});	}	this.tunnelCollapse = dojox.cometd.longPollTransport.tunnelCollapse;	this._connect = dojox.cometd.longPollTransport._connect;	this.deliver = dojox.cometd.longPollTransport.deliver;	this.openTunnelWith = function(content, url){		// create a <script> element to generate the request		dojo.io.script.get({			load: dojo.hitch(this, function(data){				this._cometd._polling = false;				this._cometd.deliver(data);				this.tunnelCollapse();			}),			error: dojo.hitch(this, function(err){				this._cometd._polling = false;				console.debug("tunnel opening failed:", err);				dojo.publish("/cometd/meta", [{cometd:this._cometd,action:"connect",successful:false,state:this._cometd.state()}]);				if (!this._cometd._advice || !this._cometd._advice.interval)				    this._cometd._advice={reconnect:"retry",interval:0};				if (this._cometd._advice.interval<this._cometd._maxInterval)				    this._cometd._advice.interval+=this._cometd._backoffInterval;				setTimeout(dojo.hitch(this,function(){ this._connect(); }),this._cometd._advice.interval);			}),                        url: (url||this._cometd.url),                        content: content,                        callbackParamName: "jsonp"		});		this._cometd._polling = true;	}	this.sendMessages = function(/*array*/ messages){		for(var i=0; i<messages.length; i++){			messages[i].clientId = this._cometd.clientId;			messages[i].id = ""+this._cometd.messageId++;		}		var bindArgs = {			url: this._cometd.url||djConfig["cometdRoot"],			load: dojo.hitch(this._cometd, "deliver"),			callbackParamName: "jsonp",			content: { message: dojo.toJson( messages ) }		};		return dojo.io.script.get(bindArgs);	}	this.startup = function(handshakeData){		if(this._cometd._connected){ return; }		this.tunnelInit();	}	this.disconnect = dojox.cometd.longPollTransport.disconnect;		this.disconnect = function(){		dojo.io.script.get({			url: this._cometd.url||djConfig["cometdRoot"],			callbackParamName: "jsonp",			content: {				message: dojo.toJson([{					channel:"/meta/disconnect",					clientId:this._cometd.clientId,					id:""+this._cometd.messageId++				}])			}		});	}}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/c5d4597e2dcaa3b9ca02e49b6818d5a152bf8ef8/cometd.js/buggy/_cometd/cometd.js