Closed Bug 612169 Opened 15 years ago Closed 15 years ago

Switch to construct/destroy model for widget

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Like my context-menu patch (bug 612016 comment 1), destroy() is idempotent. In addition to the test and doc, this patch updates various parts of the SDK that use widgets. Several trailing whitespace removals too.
Attachment #490481 - Flags: review?(dietrich)
Comment on attachment 490481 [details] [diff] [review] patch Let's see who wants it more!
Attachment #490481 - Flags: review?(myk)
Comment on attachment 490481 [details] [diff] [review] patch >@@ -161,21 +161,8 @@ Represents a widget object. > Optional text to show when the user's mouse hovers over the widget. If not > given, the `label` is used. > </api> >+<api name="destroy"> >+@method >+ Removes the widget from the widget bar. > </api> Can you also update the docs to explicitly say that widgets are added to the browser UI when instantiated, if they don't already? Also, please send a message to the list about this change. r=me, very reluctantly... because it rots the heck out my e10s patch ;)
Attachment #490481 - Flags: review?(myk)
Attachment #490481 - Flags: review?(dietrich)
Attachment #490481 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: -- → 0.10
Target Milestone: 0.10 → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: