r2122 - trunk/ui

r2122 - trunk/ui


Author: klaus.hartl
Date: Sun Feb 22 04:11:44 2009
New Revision: 2122
Modified:
trunk/ui/ui.tabs.js
Log:
Tabs: avoid !0 == true
Modified: trunk/ui/ui.tabs.js
==============================================================================
--- trunk/ui/ui.tabs.js    (original)
+++ trunk/ui/ui.tabs.js    Sun Feb 22 04:11:44 2009
@@ -145,10 +145,10 @@
                        }
                    });
                }
-                if (!o.selected && o.cookie) {
+                if (typeof o.selected != 'number' && o.cookie) {
                    o.selected = parseInt(self._cookie(), 10);
                }
-                if (!o.selected && this.$lis.filter('.ui-tabs-selected').length) {
+                if (typeof o.selected != 'number' &&
this.$lis.filter('.ui-tabs-selected').length) {
                    o.selected = this.$lis.index(this.$lis.filter('.ui-tabs-selected'));
                }
                o.selected = o.selected || 0;