Skip to content

Commit 9bd731d

Browse files
committed
Tabs: Minor cleanup of deprecated code.
1 parent a645630 commit 9bd731d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ui/jquery.ui.tabs.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,11 @@
1313
*/
1414
(function( $, undefined ) {
1515

16-
var tabId = 0,
17-
listId = 0;
18-
16+
var tabId = 0
1917
function getNextTabId() {
2018
return ++tabId;
2119
}
2220

23-
function getNextListId() {
24-
return ++listId;
25-
}
26-
2721
$.widget( "ui.tabs", {
2822
options: {
2923
active: null,
@@ -651,7 +645,7 @@ if ( $.uiBackCompat !== false ) {
651645

652646
var self = this;
653647

654-
this.element.bind( "tabsbeforeload", function( event, ui ) {
648+
this.element.bind( "tabsbeforeload.tabs", function( event, ui ) {
655649
// tab is already cached
656650
if ( $.data( ui.tab[ 0 ], "cache.tabs" ) ) {
657651
event.preventDefault();
@@ -982,6 +976,10 @@ if ( $.uiBackCompat !== false ) {
982976
}( jQuery, jQuery.ui.tabs.prototype ) );
983977

984978
// cookie option
979+
var listId = 0;
980+
function getNextListId() {
981+
return ++listId;
982+
}
985983
$.widget( "ui.tabs", $.ui.tabs, {
986984
options: {
987985
cookie: null // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }

0 commit comments

Comments
 (0)