Closed Bug 389547 Opened 17 years ago Closed 13 years ago

use .selectedIndex instead of setAttribute("selectedIndex", ...)

Categories

(Other Applications :: DOM Inspector, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: crussell)

Details

Attachments

(1 file)

Summary: use .selectedIndex instead of setAttribute("selectedIndex" → use .selectedIndex instead of setAttribute("selectedIndex", ...)
Assignee: nobody → Sevenspade
Attached patch replace themSplinter Review
Attachment #536803 - Flags: review?(neil)
Comment on attachment 536803 [details] [diff] [review]
replace them

>     // Remove the control attribute from the old panel.
>     deck.selectedPanel.removeAttribute("control");
Might it make sense to set the property here too?
Attachment #536803 - Flags: review?(neil) → review+
(In reply to comment #2)
> >     // Remove the control attribute from the old panel.
> >     deck.selectedPanel.removeAttribute("control");
> Might it make sense to set the property here too?

I didn't do that, because the control setter doesn't remove the attribute when you set it to the empty string, and I wanted to keep the original behavior of removing the attribute instead of leaving them lying around.

Pushed: http://hg.mozilla.org/dom-inspector/rev/edd57eef41d6
Severity: normal → trivial
Status: NEW → RESOLVED
Closed: 13 years ago
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: