Author: reebalazs
Date: Fri Dec 7 16:09:51 2007
New Revision: 49513
Modified:
kukit/kukit.js/branch/1.2/kukit/utils.js
Log:
Complement the previous testing fix: document mustexist too
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:09:51 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