diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-12-10 15:06:22 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-12-10 15:06:22 -0500 |
commit | 162364fae4a34bcd6e5ef9f094583b5afbdc6cc5 (patch) | |
tree | cbecdb5b57113ac268e7d0fba2b2a13026e94db5 /ui | |
parent | f54747b30234454fc6dd6fb720c4b73dc8b87345 (diff) | |
download | jquery-ui-162364fae4a34bcd6e5ef9f094583b5afbdc6cc5.tar.gz jquery-ui-162364fae4a34bcd6e5ef9f094583b5afbdc6cc5.zip |
Tabs: Removed rotate method. Fixes #5939 - Tabs: Remove rotation.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 7c615c872..7d73bf10b 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -411,7 +411,7 @@ $.widget( "ui.tabs", { // Prevent IE from keeping other link focussed when using the back button // and remove dotted border from clicked link. This is controlled via CSS // in modern browsers; blur() removes focus from address bar in Firefox - // which can become a usability and annoying problem with tabs('rotate'). + // which can become a usability if ( $.browser.msie ) { this.blur(); } @@ -701,58 +701,4 @@ $.extend( $.ui.tabs, { version: "@VERSION" }); -/* - * Tabs Extensions - */ - -/* - * Rotate - */ -$.extend( $.ui.tabs.prototype, { - rotation: null, - rotate: function( ms, continuing ) { - var self = this, - o = this.options; - - var rotate = self._rotate || ( self._rotate = function( e ) { - clearTimeout( self.rotation ); - self.rotation = setTimeout(function() { - var t = o.selected; - self.select( ++t < self.anchors.length ? t : 0 ); - }, ms ); - - if ( e ) { - e.stopPropagation(); - } - }); - - var stop = self._unrotate || ( self._unrotate = !continuing - ? function(e) { - if (e.clientX) { // in case of a true click - self.rotate(null); - } - } - : function( e ) { - t = o.selected; - rotate(); - }); - - // start rotation - if ( ms ) { - this.element.bind( "tabsshow", rotate ); - this.anchors.bind( o.event + ".tabs", stop ); - rotate(); - // stop rotation - } else { - clearTimeout( self.rotation ); - this.element.unbind( "tabsshow", rotate ); - this.anchors.unbind( o.event + ".tabs", stop ); - delete this._rotate; - delete this._unrotate; - } - - return this; - } -}); - })( jQuery ); |