Skip to content
Permalink
Browse files

Tabs: Minor cleanup of deprecated code.

  • Loading branch information...
scottgonzalez committed May 11, 2011
1 parent a645630 commit 9bd731da14a5f9eea571435561a68a3d0372313a
Showing with 6 additions and 8 deletions.
  1. +6 −8 ui/jquery.ui.tabs.js
@@ -13,17 +13,11 @@
*/
(function( $, undefined ) {

var tabId = 0,
listId = 0;

var tabId = 0
function getNextTabId() {
return ++tabId;
}

function getNextListId() {
return ++listId;
}

$.widget( "ui.tabs", {
options: {
active: null,
@@ -651,7 +645,7 @@ if ( $.uiBackCompat !== false ) {

var self = this;

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

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

0 comments on commit 9bd731d

Please sign in to comment.
You can’t perform that action at this time.