Showing 166 of 228 total issues
Function domManip
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
domManip: function( args, table, callback ) {
var results, first, fragment, parent,
value = args[0],
scripts = [];
Function CHILD
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CHILD: function( elem, match ) {
var type = match[1],
node = elem;
switch ( type ) {
Function step
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
step: function( gotoEnd ) {
var t = fxNow || createFxNow(),
done = true,
elem = this.elem,
options = this.options,
Function load
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function( url, params, callback ) {
if ( typeof url !== "string" && _load ) {
return _load.apply( this, arguments );
// Don't do a request if no elements are being requested
Function showPager
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showPager(type){
// sets up logic for finite multi slide shows
var pagerQty = $children.length;
// if we are moving more than one at a time and we have a finite loop
if(options.moveSlideQty > 1){
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 attr
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value, pass ) {
var nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
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 val
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret,
elem = this[0];
if ( !arguments.length ) {
Function goToSlide
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.goToSlide = function(number, stopAuto){
if(!isWorking){
isWorking = true;
// set current slide to argument
currentSlide = number;
Function checkbox
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn.checkbox = function(options) {
var defaults = {
className: 'jquery-checkbox',
checkedClass: 'jquery-checkbox-on'
};
Function fix
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fix: function( event ) {
if ( event[ jQuery.expando ] ) {
return event;
}
Function getWH
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getWH( elem, name, extra ) {
// Start with offset property
var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
which = name === "width" ? cssWidth : cssHeight;
Function _parseTime
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_parseTime: function(timeString, withDate) {
var regstr = this._defaults.timeFormat.toString()
.replace(/h{1,2}/ig, '(\\d?\\d)')
.replace(/m{1,2}/ig, '(\\d?\\d)')
.replace(/s{1,2}/ig, '(\\d?\\d)')
Consider simplifying this complex logical expression. Open
Open
if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
cacheable = true;
Consider simplifying this complex logical expression. Open
Open
if ( match[1] === "nth" ) {
if ( !match[2] ) {
Sizzle.error( match[0] );
}
Function _formatTime
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_formatTime: function(time, format, ampm) {
if (ampm == undefined) ampm = this._defaults.ampm;
time = time || { hour: this.hour, minute: this.minute, second: this.second, ampm: this.ampm, timezone: this.timezone };
var tmptime = format || this._defaults.timeFormat.toString();
Function each
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
each: function( object, callback, args ) {
var name, i = 0,
length = object.length,
isObj = length === undefined || jQuery.isFunction( object );
Function showAutoControls
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showAutoControls(startType, startContent, stopType, stopContent){
// create pager html elements
$autoControls = $('<a href="" class="bx-start"></a>');
// check if start is 'text' or 'image'
if(startType == 'text'){
Function setOffset
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var position = jQuery.css( elem, "position" );
// set position first, in-case top/left are set even on static elem
if ( position === "static" ) {