Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / analytics / plugins / consoleMessages.js @ 12

History | View | Annotate | Download (833 Bytes)

1
/*
2
        Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
3
        Available via Academic Free License >= 2.1 OR the modified BSD license.
4
        see: http://dojotoolkit.org/license for details
5
*/
6

    
7

    
8
if(!dojo._hasResource["dojox.analytics.plugins.consoleMessages"]){
9
dojo._hasResource["dojox.analytics.plugins.consoleMessages"]=true;
10
dojo.require("dojox.analytics._base");
11
dojo.provide("dojox.analytics.plugins.consoleMessages");
12
dojox.analytics.plugins.consoleMessages=new (function(){
13
this.addData=dojo.hitch(dojox.analytics,"addData","consoleMessages");
14
var _1=dojo.config["consoleLogFuncs"]||["error","warn","info","rlog"];
15
if(!console){
16
console={};
17
}
18
for(var i=0;i<_1.length;i++){
19
if(console[_1[i]]){
20
dojo.connect(console,_1[i],dojo.hitch(this,"addData",_1[i]));
21
}else{
22
console[_1[i]]=dojo.hitch(this,"addData",_1[i]);
23
}
24
}
25
})();
26
}