Better variable checking
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 24 Mar 2009 05:44:11 +0000 (23:44 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 24 Mar 2009 19:16:18 +0000 (13:16 -0600)
imp/js/src/DimpCore.js

index e4f7751..15d7e8d 100644 (file)
@@ -33,7 +33,7 @@ DimpCore = {
     debug: function(label, e)
     {
         if (!this.is_logout && DIMP.conf.debug) {
-            if (console) {
+            if (console.error) {
                 // Firebug error reporting.
                 console.error(label, e);
             } else {