Ticket #73 (closed defect: fixed)
change Widget system inheritence to prototypal mixin
| Reported by: | psowden | Owned by: | sjmiles |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 0.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The inheritence chain for a widget should descend from Widget into the specific implementation like so:
Widget -> Menu -> DomMenu? -> HtmlMenu?
The render specific Widget classes (DomWidget?, HtmlWidget?...) will be defined as interfaces which get "mixed in" to the corresponding Dom*, Html*... object's prototypes.
This will hopefully allow us to:
- have a single defined interitence chain
- allow us to check for instances of both Widget and Menu
- allow us to call superclass methods in our *Menu chain
- still reap the benefits of abstracting to *Widget
Attachments
Change History
Note: See
TracTickets for help on using
tickets.