root / trunk / web / dojo / dojox / rpc / Client.js @ 12
History | View | Annotate | Download (677 Bytes)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
3 |
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
4 |
see: http://dojotoolkit.org/license for details
|
5 |
*/
|
6 |
|
7 |
|
8 |
if(!dojo._hasResource["dojox.rpc.Client"]){ |
9 |
dojo._hasResource["dojox.rpc.Client"]=true; |
10 |
dojo.provide("dojox.rpc.Client");
|
11 |
(function(){
|
12 |
dojo._defaultXhr=dojo.xhr; |
13 |
dojo.xhr=function(_1,_2){ |
14 |
var _3=_2.headers=_2.headers||{};
|
15 |
_3["Client-Id"]=dojox.rpc.Client.clientId;
|
16 |
_3["Seq-Id"]=dojox._reqSeqId=(dojox._reqSeqId||0)+1; |
17 |
return dojo._defaultXhr.apply(dojo,arguments); |
18 |
}; |
19 |
})(); |
20 |
dojox.rpc.Client.clientId=(Math.random()+"").substring(2,14)+(new Date().getTime()+"").substring(8,13); |
21 |
} |