app/assets/javascripts/jquery.ui.tabs.js in jquery-ui-rails-4.2.0 vs app/assets/javascripts/jquery.ui.tabs.js in jquery-ui-rails-4.2.1

- old
+ new

@@ -1,13 +1,13 @@ //= require jquery.ui.core //= require jquery.ui.widget /*! - * jQuery UI Tabs 1.10.3 + * jQuery UI Tabs 1.10.4 * http://jqueryui.com * - * Copyright 2013 jQuery Foundation and other contributors + * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/tabs/ * @@ -23,17 +23,21 @@ function getNextTabId() { return ++tabId; } function isLocal( anchor ) { + // support: IE7 + // IE7 doesn't normalize the href property when set via script (#9317) + anchor = anchor.cloneNode( false ); + return anchor.hash.length > 1 && decodeURIComponent( anchor.href.replace( rhash, "" ) ) === decodeURIComponent( location.href.replace( rhash, "" ) ); } $.widget( "ui.tabs", { - version: "1.10.3", + version: "1.10.4", delay: 300, options: { active: null, collapsible: false, event: "click", @@ -151,11 +155,10 @@ panel: !this.active.length ? $() : this._getPanelForTab( this.active ) }; }, _tabKeydown: function( event ) { - /*jshint maxcomplexity:15*/ var focusedTab = $( this.document[0].activeElement ).closest( "li" ), selectedIndex = this.tabs.index( focusedTab ), goingForward = true; if ( this._handlePageNav( event ) ) { @@ -439,10 +442,10 @@ .attr( "role", "tabpanel" ); }, // allow overriding how to find the list for rare usage scenarios (#7715) _getList: function() { - return this.element.find( "ol,ul" ).eq( 0 ); + return this.tablist || this.element.find( "ol,ul" ).eq( 0 ); }, _createPanel: function( id ) { return $( "<div>" ) .attr( "id", id )