app/assets/javascripts/jquery.event.drag-2.2.js
File jquery.event.drag-2.2.js
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jquery.event.drag - v 2.2
* Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
* Open Source MIT License - http://threedubmedia.com/code/license
*/
Function hijack
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hijack: function( event, type, dd, x, elem ){
// not configured
if ( !dd )
return;
// remember the original event and type
Function handler
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handler: function( event ){
// read the data before hijacking anything
var dd = event.data;
// handle various events
switch ( event.type ){
Function init
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function( event ){
// sorry, only one touch at a time
if ( drag.touched )
return;
// the drag/drop interaction data
Function hijack
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
hijack: function( event, type, dd, x, elem ){
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return false;