From bf852a3dbeee8900fa36978f08a5cdceabcbd926 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 11 Sep 2008 16:47:45 +0200 Subject: rename swat => swat2, so that we don't conflict with samba3 metze --- swat2/style/qooxdoo/widgets/core/QxDebug.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 swat2/style/qooxdoo/widgets/core/QxDebug.js (limited to 'swat2/style/qooxdoo/widgets/core/QxDebug.js') diff --git a/swat2/style/qooxdoo/widgets/core/QxDebug.js b/swat2/style/qooxdoo/widgets/core/QxDebug.js new file mode 100644 index 00000000000..66ac659cfd9 --- /dev/null +++ b/swat2/style/qooxdoo/widgets/core/QxDebug.js @@ -0,0 +1,2 @@ +/* Copyright (c): 2002-2005 (Germany): United Internet, 1&1, GMX, Schlund+Partner, Alturo */ +window._start=(new Date).valueOf();function QxDebug(){var t=String((new Date).valueOf()-window._start);while(t.length<5)t="0"+t;t+=": ";var m;if(arguments.length==2){if(arguments[0]==this.last){m=t+"  "+arguments[1]+"
";}else {m = t + arguments[0] + "
" + t + "  " + arguments[1] + "
";this.last=arguments[0];};}else {m=t+arguments[0];};var d=document.getElementById("testDebug");if(!d){QxDebug.cache+=m;}else {if(QxDebug.cache!=""){d.innerHTML+=QxDebug.cache;QxDebug.cache="";};d.innerHTML+=m;};};QxDebug.cache="";function QxDebugTimer(id){if(QxDebugTimerCache[id]){QxDebug("QxDebugTimer",id+":"+((new Date).valueOf()-QxDebugTimerCache[id])+"ms");delete QxDebugTimerCache[id];}else {QxDebugTimerCache[id]=(new Date).valueOf();};};QxDebugTimerCache={}; \ No newline at end of file -- cgit v1.2.1