Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#6861 closed feature (fixed)

Widget: Add _super() and _superApply() for easy access to parent methods

Reported by: Scott González Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.widget Version: 1.8.8
Keywords: Cc:
Blocked by: Blocking:

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 (2)

comment:1 Changed 12 years ago by Scott González

Resolution: fixed
Status: newclosed

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

Changeset: 25dae411bc7bb0e618db4df062fa2f1c08bfcc77

comment:2 Changed 12 years ago by Scott González

Reimplemented in 6096aed0a38948fe02a697d0f5349c6903c90e47 to handle deep inheritance chains.

Note: See TracTickets for help on using tickets.