]> source.dussan.org Git - jquery-ui.git/commitdiff
UI Tabs: added index to ui object passed into event handlers
authorKlaus Hartl <klaus.hartl@googlemail.com>
Sun, 6 Jul 2008 15:03:38 +0000 (15:03 +0000)
committerKlaus Hartl <klaus.hartl@googlemail.com>
Sun, 6 Jul 2008 15:03:38 +0000 (15:03 +0000)
ui/ui.tabs.js

index 53dc90c19d704199154b5f32ebe46fbb02701487..a7099d0be395113bbfa859c8162151e6877b111b 100644 (file)
@@ -38,7 +38,8 @@ $.widget("ui.tabs", {
                return {
                        options: this.options,
                        tab: tab,
-                       panel: panel
+                       panel: panel,
+                       index: this.$tabs.index(tab)
                };
        },
        tabify: function(init) {