Showing 257 of 576 total issues
Function effect
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
effect: function( /* effect, options, speed, callback */ ) {
var args = _normalizeArguments.apply( this, arguments ),
mode = args.mode,
queue = args.queue,
effectMethod = $.effects.effect[ args.effect ];
Function _mouseStart
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event) {
var o = this.options;
//Create and append the visible helper
Function _createTitlebar
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createTitlebar: function() {
var uiDialogTitle;
this.uiDialogTitlebar = $( "<div>" )
.addClass( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )
Function _hideDatepicker
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_hideDatepicker: function(input) {
var showAnim, duration, postProcess, onClose,
inst = this._curInst;
if (!inst || (input && inst !== $.data(input, "datepicker"))) {
Function _mouseCapture
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function(event, overrideHandle) {
var currentItem = null,
validHandle = false,
that = this;
Function cancel
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancel: function() {
if(this.dragging) {
this._mouseUp({ target: null });
Function Video
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Video = function( type, id ) {
for( var i=0; i<_video._inst.length; i++ ) {
if ( _video._inst[i].id === id && _video._inst[i].type == type ) {
return _video._inst[i];
Function _slide
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_slide: function( event, index, newVal ) {
var otherVal,
newValues,
allowed;
Function _eventHandler
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_eventHandler: function( event ) {
var options = this.options,
active = this.active,
anchor = $( event.currentTarget ),
tab = anchor.closest( "li" ),
Function _makeDraggable
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeDraggable: function() {
var that = this,
options = this.options;
function filteredUi( ui ) {
Function loop
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loop: function() {
var distance = this.to - this.pos,
factor = 1;
Function complete
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function( thumb ) {
// shrink thumbnails to fit
var top = ['left', 'top'],
arr = ['Width', 'Height'],
Function _keydown
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_keydown: function( event ) {
if ( event.altKey || event.ctrlKey ) {
return;
}
Function refreshPositions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshPositions: function(fast) {
// Determine whether items are being displayed horizontally
this.floating = this.items.length ?
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
Function _updateDatepicker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateDatepicker: function(inst) {
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
datepicker_instActive = inst; // for delegate hover events
inst.dpDiv.empty().append(this._generateHTML(inst));
this._attachHandlers(inst);
Function top
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.offset.top + within.scrollTop,
outerHeight = within.height,
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
Function _size
has 32 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, maxContentHeight,
options = this.options;
Function _createRange
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createRange: function() {
var options = this.options,
classes = "";
if ( options.range ) {
Function _refreshItems
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshItems: function(event) {
this.items = [];
this.containers = [this];
Function _mouseStop
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStop: function(event) {
this.resizing = false;
var pr, ista, soffseth, soffsetw, s, left, top,
o = this.options, that = this;