From: Aryeh Gregor Date: Thu, 11 Jan 2007 01:01:40 +0000 (+0000) Subject: Fix to keep even more JS error consoles happy X-Git-Tag: 1.31.0-rc.0~54519 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=bcb8af7d62c26d7ab1e288dd11ac03fc990bc4be;p=lhc%2Fweb%2Fwiklou.git Fix to keep even more JS error consoles happy --- diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 51d13ef3ec..988e5f009d 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -482,7 +482,7 @@ function insertTags(tagOpen, tagClose, sampleText) { */ function akeytt( doId ) { var pref; - if (undefined == ta) ta = new Object; + if (undefined == typeof ta) ta = new Object; if (is_safari || navigator.userAgent.toLowerCase().indexOf('mac') + 1 || navigator.userAgent.toLowerCase().indexOf('konqueror') + 1 ) { pref = 'control-';