Author: reebalazs
Date: Fri Dec  7 15:59:38 2007
New Revision: 49511

Modified:
   kukit/kukit.js/trunk/kukit/utils.js
Log:
Change loglevel code to not fail, if run from a console test.

Modified: kukit/kukit.js/trunk/kukit/utils.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/utils.js (original)
+++ kukit/kukit.js/trunk/kukit/utils.js Fri Dec  7 15:59:38 2007
@@ -96,7 +96,11 @@
 ;;;     // set default level
 ;;;     this.loglevel = 0;
 ;;;     // read the cookie
-;;;     var cookie = kukit.readCookie(kukit._COOKIE_LOGLEVEL);
+;;;     /// (ignore if we run from test)
+;;;     var cookie;
+;;;     if (typeof(document.cookie) != 'undefined') {
+;;;         cookie = kukit.readCookie(kukit._COOKIE_LOGLEVEL);
+;;;     }
 ;;;     if (cookie) {
 ;;;         // decode it to a numeric level
 ;;;         cookie = cookie.toLowerCase();
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to