Author: reebalazs
Date: Fri Dec  7 16:12:47 2007
New Revision: 49514

Modified:
   kukit/kukit.js/trunk/kukit/utils.js
Log:
To complement the previous fix, port forward -r49386 from 1.2.
Probably not needed here, but it's better to be safe.

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 16:12:47 2007
@@ -98,7 +98,13 @@
 ;;;     // read the cookie
 ;;;     /// (ignore if we run from test)
 ;;;     var cookie;
-;;;     if (typeof(document.cookie) != 'undefined') {
+;;;     try {
+;;;         // in test, document would throw ReferenceError
+;;;         var __dummy = document;
+;;;     } catch(e) {
+;;;         var _dummy;
+;;;     }
+;;;     if (_dummy && typeof(document.cookie) != 'undefined') {
 ;;;         cookie = kukit.readCookie(kukit._COOKIE_LOGLEVEL);
 ;;;     }
 ;;;     if (cookie) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to