LSdebug : Use LSdefault::log() function when console objects does not exist
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 29 Oct 2009 21:59:55 +0000 (21:59 +0000)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 29 Oct 2009 21:59:55 +0000 (21:59 +0000)
trunk/includes/js/functions.js

index 10987b6..d9d6647 100644 (file)
@@ -10,6 +10,10 @@ function LSdebug(arguments) {
       opera.postError(arguments);
       return true;
     }
+    if (typeof varLSdefault != 'undefined') {
+      varLSdefault.log(arguments);
+      return true;
+    }
     alert(arguments);
 }