test for typeof to avoid IE warnings
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 16 Jun 2004 10:51:39 +0000 (10:51 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 16 Jun 2004 10:51:39 +0000 (10:51 +0000)
stylesheets/wikibits.js

index d3ed147..d297157 100644 (file)
@@ -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-';