Closed Bug 897173 Opened 11 years ago Closed 11 years ago

Add a way for calling a widget's item's methods

Categories

(DevTools :: General, defect)

25 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 892605

People

(Reporter: fitzgen, Unassigned)

References

Details

For example, we want to set checkbox state on a given item, from a SideMenuWidget.
Victor: IIRC, we wanted to add a method like `callItemMethod(methodName, ...args)` or something to Widget and then the items that you push would have to implement `item.methodName(...args)` right?
Flags: needinfo?(vporof)
I would vote for the former approach, so we don't write two methods in both places for every new piece of functionality. It's pretty meta, but elegant enough.

This should be a good first step towards bug 895514 and perfect for solving that bug you had with checking the checkboxes.
Flags: needinfo?(vporof)
Wait, my memory has become foggy, can you quickly outline what we planned on doing again? Sorry :-/
This work is subsumed by bug 892605
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.