Opened 12 years ago
Closed 12 years ago
#6745 closed feature (wontfix)
Tab Add not returns the added li Element
Reported by: | hlop | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.tabs | Version: | 1.8.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
To Fix
Change: add: function( url, label, index ) { .......
this._trigger( "add", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); return this;
},
To: add: function( url, label, index ) { .......
this._trigger( "add", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); return $li;
},
After this change, you can appeal to the created li element
Note: See
TracTickets for help on using
tickets.
This would break chaining and it's not clear what would be returned if there was a value: the tab, the panel, or an object.