Closed Bug 282242 Opened 20 years ago Closed 20 years ago

In <pref-mailnewsOverlay.js>, "redeclaration of var mailnewsEnableNews"

Categories

(MailNews Core :: Simple MAPI, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 102152

People

(Reporter: timeless, Assigned: mcsmurf)

References

()

Details

Attachments

(1 obsolete file)

Warning: redeclaration of var mailnewsEnableNews
Source File: chrome://messenger-mapi/content/pref-mailnewsOverlay.js
Line: 54, Column: 12
Source Code:
        var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");
Attached patch Patch (obsolete) — Splinter Review
Attachment #174306 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #174306 - Flags: review+
Comment on attachment 174306 [details] [diff] [review]
Patch

> function mailnewsOverlayStartup() {
>+    var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");
>+
>     mailnewsOverlayInit();
>     if (!("mapiPref" in parent)) {
>         parent.mapiPref = new Object;
>         parent.mapiPref.isDefaultMailClient = 
>                document.getElementById("mailnewsEnableMapi").checked;
Note that if you also moved the mailnewsEnableMapi declaration to the start of
the function you could then use it here too.
Attachment #174306 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
I read my bugmail in the wrong order, bug 102152 shows how it should be done.
I suggest to resolve this bug as a duplicate of bug 102152 !!?
OS: Windows XP → All
Hardware: PC → All
Summary: redeclaration of var mailnewsEnableNews → In <pref-mailnewsOverlay.js>, "redeclaration of var mailnewsEnableNews"
Target Milestone: --- → mozilla1.8beta1
Hey, why are you setting a Target Milestone :)? If you want to, resolve this bug
as a dupe, but then get sr for your patch and get it checked in.
The patch is more advanced in bug 102152,
even though it should have been posted here, had I found this bug before.

*** This bug has been marked as a duplicate of 102152 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Target Milestone: mozilla1.8beta1 → ---
Comment on attachment 174306 [details] [diff] [review]
Patch

Obsoleting: this patch never got checked in.
(See bug 102152)
Attachment #174306 - Attachment is obsolete: true
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: