assets/javascripts/ui/ui.accordion.js
File ui.accordion.js
has 324 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Accordion @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
Function _init
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_init: function() {
var options = this.options;
if ( options.navigation ) {
var current = this.element.find("a").filter(options.navigationFilter);
Function toggle
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toggle(toShow, toHide, data, clickedActive, down) {
var options = $.data(this, "accordion").options;
options.toShow = toShow;
options.toHide = toHide;
options.data = data;
Function clickHandler
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function clickHandler(event) {
var options = $.data(this, "accordion").options;
if (options.disabled) {
return false;
}
Function slide
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slide: function(options, additions) {
options = $.extend({
easing: "swing",
duration: 300
}, options, additions);
Function _keydown
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function(event) {
if (this.options.disabled || event.altKey || event.ctrlKey)
return;
var keyCode = $.ui.keyCode;
Function toggle
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function toggle(toShow, toHide, data, clickedActive, down) {
Avoid too many return
statements within this function. Open
Open
return false;