Skip to main content

Search and Top Navigation

#6861 closed feature (fixed)

Opened January 14, 2011 08:51PM UTC

Closed January 14, 2011 08:52PM UTC

Last modified February 11, 2011 02:57AM UTC

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

Reported by: scottgonzalez 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 ).

Attachments (0)
Change History (2)

Changed January 14, 2011 08:52PM UTC by Scott González comment:1

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

Changed February 11, 2011 02:57AM UTC by scottgonzalez comment:2

Reimplemented in 6096aed0a38948fe02a697d0f5349c6903c90e47 to handle deep inheritance chains.