Closed
Bug 612169
Opened 14 years ago
Closed 14 years ago
Switch to construct/destroy model for widget
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b1
People
(Reporter: adw, Assigned: adw)
References
Details
Attachments
(1 file)
24.07 KB,
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
See bug 596053.
Assignee | ||
Comment 1•14 years ago
|
||
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)
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 490481 [details] [diff] [review] patch Let's see who wants it more!
Attachment #490481 -
Flags: review?(myk)
Comment 3•14 years ago
|
||
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+
Assignee | ||
Comment 4•14 years ago
|
||
patches: https://github.com/mozilla/addon-sdk/commit/4812eafc5388f24702ae235a2e4628b477443b7c https://github.com/mozilla/addon-sdk/commit/a6bc252cb070ff0608df445ed0691ec111a07f19 merge: https://github.com/mozilla/addon-sdk/commit/36d9ec2e5cca8ea3b9c9e9cd9cc5664c650c9445 Myk posted about the construct/destroy change in general here: http://groups.google.com/group/mozilla-labs-jetpack/browse_thread/thread/92fe6afa5407f4e3/e3d0dc3c45920df5 Once all the other changes have landed, we should probably post a big follow-up message (or several smaller messages) describing them, with examples, etc.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: -- → 0.10
Updated•13 years ago
|
Target Milestone: 0.10 → 1.0b1
You need to log in
before you can comment on or make changes to this bug.
Description
•