diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo/dojox/analytics/plugins/dojo.js | |
Diffstat (limited to 'js/dojo/dojox/analytics/plugins/dojo.js')
| -rw-r--r-- | js/dojo/dojox/analytics/plugins/dojo.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/js/dojo/dojox/analytics/plugins/dojo.js b/js/dojo/dojox/analytics/plugins/dojo.js new file mode 100644 index 0000000..c180d35 --- /dev/null +++ b/js/dojo/dojox/analytics/plugins/dojo.js @@ -0,0 +1,28 @@ +//>>built +define("dojox/analytics/plugins/dojo", ["dojo/_base/lang","../_base", "dojo/_base/config", "dojo/ready" +], function(lang, dxa, config, ready){ + var plugins = lang.getObject("dojox.analytics.plugins", true); + /*===== + dxa = dojox.analytics; + ready = dojo.ready; + plugins = dojox.analytics.plugins; + plugins.dojo = dojox.analytics.plugins.dojo; + =====*/ + + return (plugins.dojo = new (function(){ + // summary: + // plugin to have analyitcs return the base info dojo collects + this.addData = lang.hitch(dxa, "addData", "dojo"); + ready(lang.hitch(this, function(){ + var data = {}; + for(var i in dojo){ + if ((i=="version") || ((!(typeof dojo[i] == "object" || typeof dojo[i] == "function"))&&(i[0]!="_"))){ + data[i]=dojo[i]; + } + } + + if (config){data.djConfig=config} + this.addData(data); + })); + })()); +}); |
