From: Ilmari Karonen Date: Thu, 11 Jan 2007 02:20:19 +0000 (+0000) Subject: Partially rv r19101+r19102, fix noise in error console by explicitly X-Git-Tag: 1.31.0-rc.0~54514 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=08c71526ba7b4439defa42dadcb2776f579b176c;p=lhc%2Fweb%2Fwiklou.git Partially rv r19101+r19102, fix noise in error console by explicitly 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. --- diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 988e5f009d..97222782a8 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -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-';