Removed unused code from JavaScript files

This commit is contained in:
djmaze 2020-07-27 14:52:18 +02:00
parent dc233bfc90
commit 1b331aca32
12 changed files with 140 additions and 427 deletions

24
vendors/jua/jua.js vendored
View file

@ -70,17 +70,6 @@
Globals.iDefLimit = 20;
Globals.bIsAjaxUploaderSupported = (function () {
var
window = __webpack_require__(1),
oInput = window.document.createElement('input')
;
oInput.type = 'file';
return !!('XMLHttpRequest' in window && 'multiple' in oInput && 'FormData' in window && (new window.XMLHttpRequest()).upload && true);
}());
module.exports = Globals;
}());
@ -997,7 +986,7 @@
});
}
Driver = (self.isAjaxUploaderSupported() && !Utils.getValue(self.oOptions, 'disableAjaxUpload', false) ?
Driver = (!Utils.getValue(self.oOptions, 'disableAjaxUpload', false) ?
__webpack_require__(5) : __webpack_require__(6));
self.oDriver = new Driver(self, self.oOptions);
@ -1205,7 +1194,6 @@
Utils.setValue(self, 'on', self.on);
Utils.setValue(self, 'cancel', self.cancel);
Utils.setValue(self, 'isDragAndDropSupported', self.isDragAndDropSupported);
Utils.setValue(self, 'isAjaxUploaderSupported', self.isAjaxUploaderSupported);
Utils.setValue(self, 'setDragAndDropEnabledStatus', self.setDragAndDropEnabledStatus);
}
@ -1277,14 +1265,6 @@
this.oDriver.cancel(sUid);
};
/**
* @return {boolean}
*/
Jua.prototype.isAjaxUploaderSupported = function ()
{
return Globals.bIsAjaxUploaderSupported;
};
/**
* @param {boolean} bEnabled
*/
@ -1339,4 +1319,4 @@
module.exports = queue;
/***/ }
/******/ ]);
/******/ ]);

File diff suppressed because one or more lines are too long