Ticket #6861 (closed feature: fixed)
Widget: Add _super() and _superApply() for easy access to parent methods
| Reported by: | scott.gonzalez | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9.0 |
| Component: | ui.widget | Version: | 1.8.8 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
These methods will make it easier to call parent methods and remove the need to know the parent from within a widget. Calls like $.Widget.prototype._setOption.call( this, key, value ) should become this._super( "_setOption", key, value ) or this._superApply( "_setOption", arguments ).
Change History
comment:1 Changed 2 years ago by Scott González
- Status changed from new to closed
- Resolution set to fixed
comment:2 Changed 2 years ago by scott.gonzalez
Reimplemented in 6096aed0a38948fe02a697d0f5349c6903c90e47 to handle deep inheritance chains.
Note: See
TracTickets for help on using
tickets.


Widget: Added _super() and _superApply() methods. Fixes #6861 - Widget: Add _super() and _superApply() for easy access to parent methods.