aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tabs.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-11 15:01:57 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-11 15:01:57 -0400
commit9bd731da14a5f9eea571435561a68a3d0372313a (patch)
treef7e5e0099478b536597354c4db6b622780acac2e /ui/jquery.ui.tabs.js
parenta645630ebaf02febb19a5c9e28f1e46401f07ed0 (diff)
downloadjquery-ui-9bd731da14a5f9eea571435561a68a3d0372313a.tar.gz
jquery-ui-9bd731da14a5f9eea571435561a68a3d0372313a.zip
Tabs: Minor cleanup of deprecated code.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r--ui/jquery.ui.tabs.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 86960cab6..76f4fb274 100644
--- a/ui/jquery.ui.tabs.js
+++ b/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 }