.removeClass( "ui-tabs-anchor" )
.removeAttr( "role" )
.removeAttr( "tabIndex" )
- .unbind( ".tabs" )
.removeData( "href.tabs" )
.removeData( "load.tabs" )
.removeUniqueId();
- this.tabs.unbind( ".tabs" ).add( this.panels ).each(function() {
+ this.tabs.add( this.panels ).each(function() {
if ( $.data( this, "ui-tabs-destroy" ) ) {
$( this ).remove();
} else {
var that = this;
- this.element.bind( "tabsbeforeload.tabs", function( event, ui ) {
+ this._on({ tabsbeforeload: function( event, ui ) {
// tab is already cached
if ( $.data( ui.tab[ 0 ], "cache.tabs" ) ) {
event.preventDefault();
$.data( ui.tab[ 0 ], "cache.tabs", true );
}
});
- });
+ }});
},
_setOption: function( key, value ) {