From 3303b52710f86bf0be16f3238217aa5deae8e5a6 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 16 Jun 2004 10:51:39 +0000 Subject: [PATCH] test for typeof to avoid IE warnings --- stylesheets/wikibits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylesheets/wikibits.js b/stylesheets/wikibits.js index d3ed1474b9..d297157b52 100644 --- a/stylesheets/wikibits.js +++ b/stylesheets/wikibits.js @@ -360,7 +360,7 @@ function insertTags(tagOpen, tagClose, sampleText) { } function akeytt() { - if(!ta) return; + if(typeof ta == "undefined" || !ta) return; pref = 'alt-'; if(is_safari || navigator.userAgent.toLowerCase().indexOf( 'mac' ) + 1 ) pref = 'control-'; if(is_opera) pref = 'shift-esc-'; -- 2.20.1