]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: fixed to use a counter for unique ids instead of relying on $.data(elem), which...
authorRichard Worth <rdworth@gmail.com>
Sat, 17 Oct 2009 01:27:02 +0000 (01:27 +0000)
committerRichard Worth <rdworth@gmail.com>
Sat, 17 Oct 2009 01:27:02 +0000 (01:27 +0000)
ui/jquery.ui.tabs.js

index 172177cf2a97a518e72f9cb5dba87a00c0c7bcd6..18515fdf74b8a65686eb2e436b442a94456045b3 100644 (file)
@@ -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) {