Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
798 bytes
|
Line | |
---|
1 | define(["dojo/_base/lang","../_base", "dojo/_base/config", "dojo/ready" |
---|
2 | ], function(lang, dxa, config, ready){ |
---|
3 | var plugins = lang.getObject("dojox.analytics.plugins", true); |
---|
4 | /*===== |
---|
5 | dxa = dojox.analytics; |
---|
6 | ready = dojo.ready; |
---|
7 | plugins = dojox.analytics.plugins; |
---|
8 | plugins.dojo = dojox.analytics.plugins.dojo; |
---|
9 | =====*/ |
---|
10 | |
---|
11 | return (plugins.dojo = new (function(){ |
---|
12 | // summary: |
---|
13 | // plugin to have analyitcs return the base info dojo collects |
---|
14 | this.addData = lang.hitch(dxa, "addData", "dojo"); |
---|
15 | ready(lang.hitch(this, function(){ |
---|
16 | var data = {}; |
---|
17 | for(var i in dojo){ |
---|
18 | if ((i=="version") || ((!(typeof dojo[i] == "object" || typeof dojo[i] == "function"))&&(i[0]!="_"))){ |
---|
19 | data[i]=dojo[i]; |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | if (config){data.djConfig=config} |
---|
24 | this.addData(data); |
---|
25 | })); |
---|
26 | })()); |
---|
27 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.