Showing 759 of 1,838 total issues
Function explode
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectExplode = $.effects.effect.explode = function( o, done ) {
var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
cells = rows,
el = $( this ),
Function CHILD
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, argument, first, last ) {
var simple = type.slice( 0, 3 ) !== "nth",
forward = type.slice( -4 ) !== "last",
ofType = what === "of-type";
Function Deferred
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function( func ) {
var tuples = [
// action, add listener, listener list, final state
[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
Function _buildLayout
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_buildLayout: function (inst, show, layout, compact, significant, showSignificant) {
var labels = inst.options[compact ? 'compactLabels' : 'labels'];
var whichLabels = inst.options.whichLabels || this._normalLabels;
var labelFor = function (index) {
return (inst.options[(compact ? 'compactLabels' : 'labels') +
Consider simplifying this complex logical expression. Open
Open
if (
(event.which === $.ui.keyCode.COMMA && event.shiftKey === false) ||
event.which === $.ui.keyCode.ENTER ||
(
event.which == $.ui.keyCode.TAB &&
Consider simplifying this complex logical expression. Open
Open
if ( forward && useCache ) {
// Seek `elem` from a previously-cached index
outerCache = parent[ expando ] || (parent[ expando ] = {});
cache = outerCache[ type ] || [];
nodeIndex = cache[0] === dirruns && cache[1];
Function refresh
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function () {
var imageData = this.currentImage;
if (!imageData)
return this;
Function _initXHRData
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initXHRData: function (options) {
var formData,
file = options.files[0],
// Ignore non-multipart setting if not supported:
multipart = options.multipart || !$.support.xhrFileUpload,
Function _generateHTML
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generateHTML: function (inst) {
var self = this;
// Determine what to show
inst._periods = (inst._hold ? inst._periods :
this._calculatePeriods(inst, inst._show, inst.options.significant, new Date()));
Function _mouseCapture
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function (event) {
var o = this.options,
position,
normValue,
distance,
Function _open
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_open: function( event, target, content ) {
var tooltipData, tooltip, delayedShow, a11yContent,
positionOption = $.extend( {}, this.options.position );
if ( !content ) {
File jquery.fileupload-uix.js
has 261 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery File Upload User Interface Extended Plugin 4.4.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Function _generateMonthYearHeader
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
secondary, monthNames, monthNamesShort) {
var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
changeMonth = this._get(inst, "changeMonth"),
Function _setContainment
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setContainment: function() {
var isUserScrollable, c, ce,
o = this.options,
document = this.document[ 0 ];
Function createWrapper
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createWrapper: function( element ) {
// if the element is already wrapped, return it
if ( element.parent().is( ".ui-effects-wrapper" )) {
return element.parent();
Function ajaxConvert
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxConvert( s, response, jqXHR, isSuccess ) {
var conv2, current, conv, tmp, prev,
converters = {},
// Work with a copy of dataTypes in case we need to modify it for conversion
dataTypes = s.dataTypes.slice();
Function Countdown
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Countdown() {
this.regional = []; // Available regional settings, indexed by language code
this.regional[''] = { // Default regional settings
// The display texts for the counters
labels: ['Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'],
Function _refreshValue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refreshValue: function () {
var oRange = this.options.range,
o = this.options,
self = this,
animate = (!this._animateOff) ? o.animate : false,
Method resizeImage
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function resizeImage()
{
// check file extension
switch ($this->imageMimetype) {
case'image/png':
Function _setOption
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
var i,
valsLength = 0;
if ( key === "range" && this.options.range === true ) {