Showing 319 of 620 total issues
Function name
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
var type, i = 0, match, namespaces, preType,
selector = origSelector || this.selector,
context = origSelector ? this : jQuery( this.context );
Function insertAxisLabels
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function insertAxisLabels() {
placeholder.find(".tickLabels").remove();
var html = ['<div class="tickLabels" style="font-size:smaller">'];
Function setupGrid
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupGrid() {
var i, axes = allAxes();
// first calculate the plot and axis box dimensions
Function _makeResizable
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeResizable: function( handles ) {
handles = (handles === undefined ? this.options.resizable : handles);
var that = this,
options = this.options,
// .ui-resizable has position: relative defined in the stylesheet
Function shake
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.shake = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "effect" ),
Function add
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function( url, label, index ) {
if ( index === undefined ) {
index = this.anchors.length;
}
Consider simplifying this complex logical expression. Open
Open
if ( ( ( $target[0].id != $.datepicker._mainDivId &&
$target.parents('#' + $.datepicker._mainDivId).length == 0 &&
!$target.hasClass($.datepicker.markerClassName) &&
!$target.closest("." + $.datepicker._triggerClass).length &&
$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
Consider simplifying this complex logical expression. Open
Open
if (this.floating && horizontalDirection) {
return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf));
} else {
return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf));
}
Consider simplifying this complex logical expression. Open
Open
if(!(/^(document|window|parent)$/).test(o.containment)) {
var ce = $(o.containment)[0];
var co = $(o.containment).offset();
var over = ($(ce).css("overflow") != 'hidden');
Function data
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function( key, value ) {
var data = null;
if ( typeof key === "undefined" ) {
if ( this.length ) {
Function _eventHandler
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_eventHandler: function( event ) {
var options = this.options,
active = this.active,
clicked = $( event.currentTarget ),
clickedIsActive = clicked[ 0 ] === active[ 0 ],
Function step
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
step: function( gotoEnd ) {
var t = jQuery.now(), done = true;
if ( gotoEnd || t >= this.options.duration + this.startTime ) {
this.now = this.end;
Function extend
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
Function bridge
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = slice.call( arguments, 1 ),
Function handle
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handle: function( event ) {
var all, handlers, namespaces, namespace_re, events,
namespace_sort = [],
args = jQuery.makeArray( arguments );
Function _on
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement,
instance = this;
// no suppressDisabledCheck flag, shuffle arguments
Function _mouseStart
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event) {
var o = this.options;
//Create and append the visible helper
Function drawBar
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function drawBar(x, y, b, barLeft, barRight, offset, fillStyleCallback, axisx, axisy, c, horizontal, lineWidth) {
Function _size
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_size: function() {
/* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
* divs will both have width and height set, so we need to reset them
*/
var nonContentHeight, minContentHeight, autoHeight,
Function drag
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(event, ui) {
var inst = $(this).data("draggable"), o = inst.options;
var d = o.snapTolerance;