app/assets/javascripts/jquery-dropUploader.js
Function dropUploader
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.dropUploader = function(options){
var self = this;
var options = options;
/**
Function result
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var result = this.each(function(){
var elm = this;
if(window.addEventListener){
elm.addEventListener(
'dragenter',
Consider simplifying this complex logical expression. Open
Open
if(window.addEventListener){
elm.addEventListener(
'dragenter',
(options['onDragenter'] || function(){}),
options['bubbling']
Avoid deeply nested control flow statements. Open
Open
if(typeof options['onProgress'] === 'function'){
options['onProgress'](0);
}