Showing 170 of 256 total issues
Function xml2json
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
xml2json: function(xml, extended) {
if(!xml) return {}; // quick fail
//### PARSER LIBRARY
// Core function
Function Deferred
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function( func ) {
var doneList = jQuery.Callbacks( "once memory" ),
failList = jQuery.Callbacks( "once memory" ),
progressList = jQuery.Callbacks( "memory" ),
state = "pending",
Consider simplifying this complex logical expression. Open
Open
if ( "getBoundingClientRect" in document.documentElement ) {
jQuery.fn.offset = function( options ) {
var elem = this[0], box;
if ( options ) {
Function doAnimation
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doAnimation() {
// XXX 'this' does not always have a nodeName when running the
// test suite
if ( optall.queue === false ) {
Function add
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function( elem, types, handler, data, selector ) {
var elemData, eventHandle, events,
t, tns, type, namespaces, handleObj,
handleObjIn, quick, handlers, special;
Function _create
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var me = this;
//drag variables
this.dx = 0;
Function filter
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Sizzle.filter = function( expr, set, inplace, not ) {
var match, anyFound,
type, found, item, filter, left,
i, pass,
old = expr,
Function done
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function done( status, nativeStatusText, responses, headers ) {
// Called once
if ( state === 2 ) {
return;
Function init
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function( selector, context, rootjQuery ) {
var match, elem, ret, doc;
// Handle $(""), $(null), or $(undefined)
if ( !selector ) {
Function ellipsisElement
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ellipsisElement( $e, $d, $i, o, after )
{
var isTruncated = false,
e = $e[ 0 ];
Function setupBindings
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupBindings() {
eventData = { target: this }
// bind up controls
Function parseXML
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseXML(node, simple){
if(!node) return null;
var txt = '', obj = null, att = null;
var nt = node.nodeType, nn = jsVar(node.localName || node.nodeName);
var nv = node.text || node.nodeValue || '';
Function handler
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handler(event) {
var orgEvent = event || window.event,
args = slice.call(arguments, 1),
delta = 0,
deltaX = 0,
Function ajaxConvert
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxConvert( s, response ) {
// Apply the dataFilter if provided
if ( s.dataFilter ) {
response = s.dataFilter( response, s.dataType );
Function dispatch
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dispatch: function( event ) {
// Make a writable jQuery.Event from the native event object
event = jQuery.event.fix( event || window.event );
Function initializeContents
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initializeContents()
{
// hide all more buttons because they are not needed with JS
$(".element a.more").hide();
Function data
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function( elem, name, data, pvt /* Internal Use Only */ ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
Function removeData
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeData: function( elem, name, pvt /* Internal Use Only */ ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
Function offset
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn.offset = function( options ) {
var elem = this[0];
if ( options ) {
return this.each(function( i ) {
Function remove
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
t, tns, type, origType, namespaces, origCount,
j, events, special, handle, eventType, handleObj;