From: Gabriel Wicke Date: Wed, 16 Jun 2004 10:51:39 +0000 (+0000) Subject: test for typeof to avoid IE warnings X-Git-Tag: 1.5.0alpha1~2837 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=3303b52710f86bf0be16f3238217aa5deae8e5a6;p=lhc%2Fweb%2Fwiklou.git test for typeof to avoid IE warnings --- 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-';