Showing 679 of 1,357 total issues
Function drag
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(event, ui) {
var i = $(this).data("draggable"), o = i.options, scrolled = false;
if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {
Function create
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function(dialog) {
if (this.instances.length === 0) {
// prevent use of anchors and inputs
// we use a setTimeout in case the overlay is created from an
// event that we're going to be cancelling (see #2804)
Function highlight
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.highlight = function(o) {
return this.queue(function() {
var elem = $(this),
props = ['backgroundImage', 'backgroundColor', 'opacity'],
mode = $.effects.setMode(elem, o.options.mode || 'show'),
Function cloneFixAttributes
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cloneFixAttributes( src, dest ) {
var nodeName;
// We do not need to do anything for non-Elements
if ( dest.nodeType !== 1 ) {
Function dirCheck
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
for ( var i = 0, l = checkSet.length; i < l; i++ ) {
var elem = checkSet[i];
if ( elem ) {
Function promise
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
promise: function( type, object ) {
if ( typeof type !== "string" ) {
object = type;
type = undefined;
}
Function cleanData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cleanData: function( elems ) {
var data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special,
deleteExpando = jQuery.support.deleteExpando;
for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
Function offset
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn.offset = function( options ) {
var elem = this[0], box;
if ( options ) {
return this.each(function( i ) {
Function resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function(event, ui) {
var self = $(this).data("resizable"), o = self.options,
ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
pRatio = self._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
Function resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function() {
var options = this.options,
maxHeight;
if ( options.fillSpace ) {
Function _optionDatepicker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_optionDatepicker: function(target, name, value) {
var inst = this._getInst(target);
if (arguments.length == 2 && typeof name == 'string') {
return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
(inst ? (name == 'all' ? $.extend({}, inst.settings) :
Function _initSource
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initSource: function() {
var self = this,
array,
url;
if ( $.isArray(this.options.source) ) {
Function _determineButtonType
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineButtonType: function() {
if ( this.element.is(":checkbox") ) {
this.type = "checkbox";
} else if ( this.element.is(":radio") ) {
Function _initSource
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initSource: function() {
var self = this,
array,
url;
if ( $.isArray(this.options.source) ) {
Function _optionDatepicker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_optionDatepicker: function(target, name, value) {
var inst = this._getInst(target);
if (arguments.length == 2 && typeof name == 'string') {
return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
(inst ? (name == 'all' ? $.extend({}, inst.settings) :
Function _determineButtonType
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineButtonType: function() {
if ( this.element.is(":checkbox") ) {
this.type = "checkbox";
} else if ( this.element.is(":radio") ) {
Function resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function(event, ui) {
var self = $(this).data("resizable"), o = self.options,
ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
pRatio = self._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
Function resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function() {
var options = this.options,
maxHeight;
if ( options.fillSpace ) {
Function clone
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var srcElements,
destElements,
i,
// IE<=8 does not properly clone detached, unknown element nodes
Function promise
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
promise: function( type, object ) {
if ( typeof type !== "string" ) {
object = type;
type = undefined;
}