From fa0bad6ceca3b5c5377557d579f584e4d3a412f9 Mon Sep 17 00:00:00 2001 From: "bugzilla%arlen.demon.co.uk" Date: Thu, 22 Sep 2005 22:24:30 +0000 Subject: [PATCH] Bug 309061 msgHdrViewOverlay.js should use hasChildNodes p=me r/sr=neil.parkwaycc.co.uk --- mailnews/base/resources/content/msgHdrViewOverlay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailnews/base/resources/content/msgHdrViewOverlay.js b/mailnews/base/resources/content/msgHdrViewOverlay.js index 60c310afbe1..75965b7e8fc 100644 --- a/mailnews/base/resources/content/msgHdrViewOverlay.js +++ b/mailnews/base/resources/content/msgHdrViewOverlay.js @@ -1332,8 +1332,8 @@ function ClearAttachmentList() var list = document.getElementById('attachmentList'); list.clearSelection(); - while (list.childNodes.length) - list.removeItemAt(list.childNodes.length - 1); + while (list.hasChildNodes()) + list.removeChild(list.lastChild); } function ShowEditMessageButton()