aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKlaus Hartl <klaus.hartl@googlemail.com>2009-02-22 12:11:44 +0000
committerKlaus Hartl <klaus.hartl@googlemail.com>2009-02-22 12:11:44 +0000
commit0f9b9fe1b750cd9917831569c2494854f0af0228 (patch)
tree5b201a99ed45b7f7d24a45a668d3dd70c044aed7 /ui
parent66761ebe9a9ad8ec34b9d8356e81ed81f8d33ccb (diff)
downloadjquery-ui-0f9b9fe1b750cd9917831569c2494854f0af0228.tar.gz
jquery-ui-0f9b9fe1b750cd9917831569c2494854f0af0228.zip
Tabs: avoid !0 == true
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.tabs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js
index 26d4c2ad3..4a6c5c31d 100644
--- a/ui/ui.tabs.js
+++ b/ui/ui.tabs.js
@@ -145,10 +145,10 @@ $.widget("ui.tabs", {
}
});
}
- 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;