assets/javascripts/ui/ui.tabs.js
Function _tabify
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_tabify: function(init) {
this.$lis = $('li:has(a[href])', this.element);
this.$tabs = this.$lis.map(function() { return $('a', this)[0]; });
this.$panels = $([]);
File ui.tabs.js
has 408 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Tabs @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
Function load
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function(index, callback) { // callback is for internal usage only
var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0],
bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs');
Function add
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function(url, label, index) {
if (index == undefined)
index = this.$tabs.length; // append by default
var o = this.options;
Function rotate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rotate: function(ms, continuing) {
continuing = continuing || false;
var self = this, t = this.options.selected;
Avoid deeply nested control flow statements. Open
Open
else if (self.$lis.filter('.' + o.selectedClass).length)
o.selected = self.$lis.index( self.$lis.filter('.' + o.selectedClass)[0] );
Avoid deeply nested control flow statements. Open
Open
if (index && self.$tabs[index]) o.selected = index;