Last change
on this file since 483 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
731 bytes
|
Line | |
---|
1 | define(["dojo/_base/lang", "../_base", "dojo/_base/config", "dojo/aspect" |
---|
2 | ], function(lang, dxa, config, aspect){ |
---|
3 | |
---|
4 | var consoleMessages = lang.getObject("dojox.analytics.plugins.consoleMessages", true); |
---|
5 | |
---|
6 | // summary: |
---|
7 | // plugin to have analyitcs return the base info dojo collects |
---|
8 | this.addData = lang.hitch(dxa, "addData", "consoleMessages"); |
---|
9 | |
---|
10 | var lvls = config["consoleLogFuncs"] || ["error", "warn", "info", "rlog"]; |
---|
11 | if(!console){ |
---|
12 | console = {}; |
---|
13 | } |
---|
14 | |
---|
15 | for(var i = 0; i < lvls.length; i++){ |
---|
16 | var fnName = lvls[i], _addData = lang.hitch(this, "addData", fnName); |
---|
17 | if(console[fnName]){ |
---|
18 | aspect.after(console, fnName, _addData,true); |
---|
19 | }else{ |
---|
20 | console[fnName] = _addData; |
---|
21 | } |
---|
22 | } |
---|
23 | return consoleMessages; |
---|
24 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.