Partially rv r19101+r19102, fix noise in error console by explicitly
authorIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 11 Jan 2007 02:20:19 +0000 (02:20 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 11 Jan 2007 02:20:19 +0000 (02:20 +0000)
referring to window.ta.  Also make a local copy to avoid it getting
clobbered below if doId is given; this seems reasonable, hopefully it
won't break any hidden assumptions anywhere.

skins/common/wikibits.js

index 988e5f0..9722278 100644 (file)
@@ -482,7 +482,8 @@ function insertTags(tagOpen, tagClose, sampleText) {
  */
 function akeytt( doId ) {
        var pref;
-       if (undefined == typeof ta) ta = new Object;
+       var ta = window.ta;  // make local copy
+       if (!ta) ta = new Array;
        if (is_safari || navigator.userAgent.toLowerCase().indexOf('mac') + 1
                || navigator.userAgent.toLowerCase().indexOf('konqueror') + 1 ) {
                pref = 'control-';