Subversion Repositories Applications.papyrus

Rev

Rev 1318 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1318 Rev 1422
Line 6... Line 6...
6
	modified BSD license. For more information on Dojo licensing, see:
6
	modified BSD license. For more information on Dojo licensing, see:
Line 7... Line 7...
7
 
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
8
		http://dojotoolkit.org/community/licensing.shtml
Line -... Line 9...
-
 
9
*/
-
 
10
 
9
*/
11
 
10
 
12
 
11
dojo.require("dojo.io.common");
13
dojo.require("dojo.io.common");
12
dojo.provide("dojo.io.cometd");
14
dojo.provide("dojo.io.cometd");
13
dojo.require("dojo.AdapterRegistry");
15
dojo.require("dojo.AdapterRegistry");
Line 505... Line 507...
505
		if ((bypassBacklog) || (this.connected)) {
507
		if ((bypassBacklog) || (this.connected)) {
506
			message.connectionId = this.connectionId;
508
			message.connectionId = this.connectionId;
507
			message.clientId = cometd.clientId;
509
			message.clientId = cometd.clientId;
508
			var bindArgs = {url:cometd.url || djConfig["cometdRoot"], mimetype:"text/json", transport:"ScriptSrcTransport", jsonParamName:"jsonp", content:{message:dojo.json.serialize([message])}, load:dojo.lang.hitch(this, function (type, data, evt, args) {
510
			var bindArgs = {url:cometd.url || djConfig["cometdRoot"], mimetype:"text/json", transport:"ScriptSrcTransport", jsonParamName:"jsonp", content:{message:dojo.json.serialize([message])}, load:dojo.lang.hitch(this, function (type, data, evt, args) {
509
				cometd.deliver(data);
511
				cometd.deliver(data);
510
			}), };
512
			})};
511
			return dojo.io.bind(bindArgs);
513
			return dojo.io.bind(bindArgs);
512
		} else {
514
		} else {
513
			this.backlog.push(message);
515
			this.backlog.push(message);
514
		}
516
		}
515
	};
517
	};