Closed Bug 603253 Opened 15 years ago Closed 15 years ago

Make featureConfigurator.js use iteratorUtils.toArray

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rain1, Assigned: bwinton)

References

Details

Attachments

(1 file, 2 obsolete files)

Now that we've fixed toArray, we might as well make use of it in featureConfigurator.js. Blake, if you would upload that patch you have I could review it. +++ This bug was initially created as a clone of Bug #559909 +++
(I haven't tested it yet, but I thought I'ld start it through the review process while I was waiting for the tests to run.) Thanks, Blake.
Assignee: nobody → bwinton
Status: NEW → ASSIGNED
Attachment #482597 - Flags: review?(sid.bugzilla)
Comment on attachment 482597 [details] [diff] [review] A patch to use the new iterator functionality. As you pointed out on IRC, you don't actually call toArray. :P
Attachment #482597 - Flags: review?(sid.bugzilla) → review-
Attached patch How about this one? (obsolete) — Splinter Review
It even passes the tests, although it is a little ugly to have to write: servers = toArray(Iterator(servers)); instead of just: servers = toArray(servers); Thanks, Blake.
Attachment #482597 - Attachment is obsolete: true
Attachment #482667 - Flags: review?(sid.bugzilla)
Comment on attachment 482667 [details] [diff] [review] How about this one? Iterator is the wrong thing to use here: http://grab.by/grabs/0f399aaaba4dffbb5668fc5cdb3d4bb7.png
Attachment #482667 - Flags: review?(sid.bugzilla) → review-
(In reply to comment #4) > Iterator is the wrong thing to use here: > http://grab.by/grabs/0f399aaaba4dffbb5668fc5cdb3d4bb7.png Indeed. fixIterator seems to work, though, as you mentioned on IRC. (I printed out the server type in a dump statement, and it returned "none", and "pop3", so I believe it works.) Thanks, Blake.
Attachment #482667 - Attachment is obsolete: true
Attachment #482712 - Flags: review?(sid.bugzilla)
Comment on attachment 482712 [details] [diff] [review] And this should hopefully be the final version. Looks good.
Attachment #482712 - Flags: review?(sid.bugzilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: