diff options
author | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-02-22 12:11:44 +0000 |
---|---|---|
committer | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-02-22 12:11:44 +0000 |
commit | 0f9b9fe1b750cd9917831569c2494854f0af0228 (patch) | |
tree | 5b201a99ed45b7f7d24a45a668d3dd70c044aed7 /ui | |
parent | 66761ebe9a9ad8ec34b9d8356e81ed81f8d33ccb (diff) | |
download | jquery-ui-0f9b9fe1b750cd9917831569c2494854f0af0228.tar.gz jquery-ui-0f9b9fe1b750cd9917831569c2494854f0af0228.zip |
Tabs: avoid !0 == true
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.tabs.js | 4 |
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; |