Author: reebalazs
Date: Fri Dec 7 16:01:51 2007
New Revision: 49512
Modified:
kukit/kukit.js/branch/1.2/kukit/utils.js
Log:
Backport of -r49511 from trunk: Change loglevel code to not fail, if run from a
console test.
Modified: kukit/kukit.js/branch/1.2/kukit/utils.js
==============================================================================
--- kukit/kukit.js/branch/1.2/kukit/utils.js (original)
+++ kukit/kukit.js/branch/1.2/kukit/utils.js Fri Dec 7 16:01:51 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