diff options
author | Richard Worth <rdworth@gmail.com> | 2009-01-22 13:10:18 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-01-22 13:10:18 +0000 |
commit | 1b891501f2c5e7e6f99839121e210aa38557dad6 (patch) | |
tree | b2d363803bdc8fdc2406b1425ebe9a6e8af6269a /ui/ui.tabs.js | |
parent | 6b80dc29c8a888029f71edb73aee4e166f54214b (diff) | |
download | jquery-ui-1b891501f2c5e7e6f99839121e210aa38557dad6.tar.gz jquery-ui-1b891501f2c5e7e6f99839121e210aa38557dad6.zip |
whitespace
Diffstat (limited to 'ui/ui.tabs.js')
-rw-r--r-- | ui/ui.tabs.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js index 3d566e5d1..bc6f6f0f8 100644 --- a/ui/ui.tabs.js +++ b/ui/ui.tabs.js @@ -93,7 +93,7 @@ $.widget("ui.tabs", { this.$lis = $('li:has(a[href])', this.list); this.$tabs = this.$lis.map(function() { return $('a', this)[0]; }); this.$panels = $([]); - + var self = this, o = this.options; var fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash @@ -103,15 +103,15 @@ $.widget("ui.tabs", { // inline tab if (fragmentId.test(href)) self.$panels = self.$panels.add(self._sanitizeSelector(href)); - + // remote tab else if (href != '#') { // prevent loading the page itself if href is just "#" $.data(a, 'href.tabs', href); // required for restore on destroy - + // TODO until #3808 is fixed strip fragment identifier from url // (IE fails to load from such url) $.data(a, 'load.tabs', href.replace(/#.*$/, '')); // mutable data - + var id = self._tabId(a); a.href = '#' + id; var $panel = $('#' + id); @@ -122,7 +122,7 @@ $.widget("ui.tabs", { } self.$panels = self.$panels.add($panel); } - + // invalid tab href else o.disabled.push(i + 1); |