mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Removed unused code from JavaScript files
This commit is contained in:
parent
dc233bfc90
commit
1b331aca32
12 changed files with 140 additions and 427 deletions
24
vendors/jua/jua.js
vendored
24
vendors/jua/jua.js
vendored
|
|
@ -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;
|
||||
|
||||
/***/ }
|
||||
/******/ ]);
|
||||
/******/ ]);
|
||||
|
|
|
|||
3
vendors/jua/jua.min.js
vendored
3
vendors/jua/jua.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue