From 01e201ddeb2d8381fd62ad69d729f7458865eb0f Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 12 Sep 2008 18:06:05 +0000 Subject: -better getElementById wrapper for IE git-svn-id: https://svn.roundcube.net/trunk@1780 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/common.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index 649779746..1a5c0519c 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -639,21 +639,13 @@ if (bw.ie) document._getElementById = document.getElementById; document.getElementById = function(id) { - var a = []; + var i = 0; var o = document._getElementById(id); - while (o.id != id) - { - a.push({i:o.id,e:o}); - o.id = ''; - o = document._getElementById(id); - if (!o) return o; - } - - for (j=0,jj=a.length; j