Fix to keep JS error consoles happy
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 11 Jan 2007 01:00:34 +0000 (01:00 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 11 Jan 2007 01:00:34 +0000 (01:00 +0000)
skins/common/wikibits.js

index 6ca5485..51d13ef 100644 (file)
@@ -482,7 +482,7 @@ function insertTags(tagOpen, tagClose, sampleText) {
  */
 function akeytt( doId ) {
        var pref;
-       if (!ta) ta = new Object;
+       if (undefined == ta) ta = new Object;
        if (is_safari || navigator.userAgent.toLowerCase().indexOf('mac') + 1
                || navigator.userAgent.toLowerCase().indexOf('konqueror') + 1 ) {
                pref = 'control-';