projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a66868
)
Fix firebug console detection
author
Michael M Slusarz
<slusarz@curecanti.org>
Thu, 8 Oct 2009 22:00:43 +0000
(16:00 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Thu, 8 Oct 2009 22:00:43 +0000
(16:00 -0600)
imp/js/DimpCore.js
patch
|
blob
|
history
diff --git
a/imp/js/DimpCore.js
b/imp/js/DimpCore.js
index
5bd4e28
..
11d9cdc
100644
(file)
--- a/
imp/js/DimpCore.js
+++ b/
imp/js/DimpCore.js
@@
-26,9
+26,9
@@
var DimpCore = {
debug: function(label, e)
{
if (!this.is_logout && DIMP.conf.debug) {
- if (
console &&
console.error) {
+ if (
window.console && window.
console.error) {
// Firebug error reporting.
- console.error(label, e);
+
window.
console.error(label, e);
} else {
alert(label + ': ' + ((e instanceof Error && e.name && e.message) ? e.name + '-' + e.message : Object.inspect(e)) + (e.lineNumber ? ' (Line #' + e.lineNumber + ')' : ''));
}