Tabs: Minor cleanup of deprecated code.

This commit is contained in:
Scott González 2011-05-11 15:01:57 -04:00
parent a645630eba
commit 9bd731da14

14
ui/jquery.ui.tabs.js vendored
View File

@ -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 }