Showing 175 of 609 total issues
File jquery-ui.js
has 2006 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI 1.6rc2
*
* Includes:
* * UI Core
File ui.datepicker.js
has 1470 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Datepicker @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
File ui.sortable.js
has 692 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Sortable @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
File ui.resizable.js
has 576 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Resizable @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
File ui.dialog.js
has 508 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Dialog @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
File ui.draggable.js
has 491 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Draggable @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
Function _generateHTML
has 189 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generateHTML: function(inst) {
var today = new Date();
today = this._daylightSavingAdjust(
new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
var showStatus = this._get(inst, 'showStatus');
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 _init
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_init: function() {
var self = this, o = this.options;
var elpos = this.element.css('position');
File ui.core.js
has 382 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
File ui.slider.js
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Slider @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
Function parseDate
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseDate: function (format, value, settings) {
if (format == null || value == null)
throw 'Invalid arguments';
value = (typeof value == 'object' ? value.toString() : value + '');
if (value == '')
Function _init
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_init: function() {
this.originalTitle = this.element.attr('title');
this.options.title = this.options.title || this.originalTitle;
var self = this,
Consider simplifying this complex logical expression. Open
Open
if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
inst.snapElements[i].snapping = false;
continue;
}
Consider simplifying this complex logical expression. Open
Open
if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, null, $.extend(inst.uiHash(), { snapItem: inst.snapElements[i].item })));
inst.snapElements[i].snapping = false;
continue;
}
Function contextMenu
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
contextMenu: function(o, callback) {
// Defaults
if( o.menu == undefined ) return false;
if( o.menuCssName == undefined ) o.menuCssName = 'contextMenu';
if( o.inSpeed == undefined ) o.inSpeed = 150;
Function Datepicker
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Datepicker() {
this.debug = false; // Change this to true to start debugging
this._curInst = null; // The current instance in use
this._keyEvent = false; // If the last event was a key event
this._disabledInputs = []; // List of date picker inputs that have been disabled
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 size
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.size = function(o) {
return this.queue(function() {
// Create element