modules/core/client/js/upload.js
Function choice
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Upload.prototype.choice = function (event) {
var self = this,
files1 = Array.prototype.slice.apply(event.target.files || []),
files2 = Array.prototype.slice.apply(event.dataTransfer ? event.dataTransfer.files || [] : []);
Function input
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Upload.prototype.input = function (HTMLElement, onClick) {
this._hover = this.hover.bind(this);
this._drop = this.drop.bind(this);
this._pick = this.pick.bind(this);