root / trunk / web / dojo / dojox / analytics / plugins / dojo.js @ 9
History | View | Annotate | Download (740 Bytes)
1 | 9 | andrej.cim | if(!dojo._hasResource["dojox.analytics.plugins.dojo"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. |
---|---|---|---|
2 | dojo._hasResource["dojox.analytics.plugins.dojo"] = true; |
||
3 | dojo.require("dojox.analytics._base");
|
||
4 | dojo.provide("dojox.analytics.plugins.dojo");
|
||
5 | |||
6 | dojox.analytics.plugins.dojo = new (function(){ |
||
7 | // summary:
|
||
8 | // plugin to have analyitcs return the base info dojo collects
|
||
9 | this.addData = dojo.hitch(dojox.analytics, "addData", "dojo"); |
||
10 | dojo.addOnLoad(dojo.hitch(this, function(){ |
||
11 | var data = {};
|
||
12 | for(var i in dojo){ |
||
13 | if ((i=="version") || ((!dojo.isObject(dojo[i]))&&(i[0]!="_"))){ |
||
14 | data[i]=dojo[i]; |
||
15 | } |
||
16 | } |
||
17 | |||
18 | if (dojo.config){data.djConfig=dojo.config}
|
||
19 | this.addData(data);
|
||
20 | })); |
||
21 | })(); |
||
22 | |||
23 | } |