app/assets/javascripts/jquery/jquery-migrate-1.1.1.js
File jquery-migrate-1.1.1.js
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery Migrate - v1.1.1 - 2013-02-16
* https://github.com/jquery/jquery-migrate
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
*/
Function attr
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.attr = function( elem, name, value, pass ) {
var lowerName = name.toLowerCase(),
nType = elem && elem.nodeType;
if ( pass ) {
Function clean
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.clean = function( elems, context, fragment, scripts ) {
// Set context per 1.8 logic
context = context || document;
context = !context.nodeType && context[0] || context;
context = context.ownerDocument || context;
Avoid deeply nested control flow statements. Open
Open
if ( typeof elem.getElementsByTagName !== "undefined" ) {
// handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
// Splice the scripts into ret after their former ancestor and advance our index beyond them
Function add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
jQuery.event.add = function( elem, types, handler, data, selector ){
Function remove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){