From 7f3e20b2b2151041b5f0edc1a8efcbb2500f1fb8 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Sat, 17 Oct 2009 01:27:02 +0000 Subject: [PATCH] Tabs: fixed to use a counter for unique ids instead of relying on $.data(elem), which in 1.4 won't return an id. Thanks Mark Gibson. --- ui/jquery.ui.tabs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 172177cf2..18515fdf7 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -12,6 +12,8 @@ */ (function($) { +var tabId = 0; + $.widget("ui.tabs", { _init: function() { @@ -39,7 +41,7 @@ $.widget("ui.tabs", { _tabId: function(a) { return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '') || - this.options.idPrefix + $.data(a); + this.options.idPrefix + (++tabId); }, _sanitizeSelector: function(hash) { -- 2.39.5