Last change
on this file since 485 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
656 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 | return (plugins.dojo = new (function(){ |
---|
6 | // summary: |
---|
7 | // plugin to have analyitcs return the base info dojo collects |
---|
8 | this.addData = lang.hitch(dxa, "addData", "dojo"); |
---|
9 | ready(lang.hitch(this, function(){ |
---|
10 | var data = {}; |
---|
11 | for(var i in dojo){ |
---|
12 | if((i == "version") || ((!(typeof dojo[i] == "object" || typeof dojo[i] == "function")) && (i[0] != "_"))){ |
---|
13 | data[i] = dojo[i]; |
---|
14 | } |
---|
15 | } |
---|
16 | |
---|
17 | if(config){data.djConfig = config} |
---|
18 | this.addData(data); |
---|
19 | })); |
---|
20 | })()); |
---|
21 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.