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 )
.
Widget: Added _super() and _superApply() methods. Fixes #6861 - Widget: Add _super() and _superApply() for easy access to parent methods.
Changeset: 25dae411bc7bb0e618db4df062fa2f1c08bfcc77