/**
* Handles successful Ajax requests.
*/
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- _ajaxSuccess(data) {
+ _ajaxSuccess(_data) {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
throw new Error("Implement me!");
}
Listener_1.default.trigger();
return uploadId;
}
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- _createFileTableRow(file) {
+ _createFileTableRow(_file) {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
throw new Error("Has to be implemented in subclass.");
}
/**
* Handles a failed file upload.
*/
- _failure(
- /* eslint-disable @typescript-eslint/no-unused-vars */
- uploadId, data, responseText, xhr, requestOptions
- /* eslint-enable @typescript-eslint/no-unused-vars */
- ) {
+ _failure(_uploadId, _data, _responseText, _xhr, _requestOptions) {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
return true;
}
/**
* Handles a successful file upload.
*/
- _success(
- /* eslint-disable @typescript-eslint/no-unused-vars */
- uploadId, data, responseText, xhr, requestOptions
- /* eslint-enable @typescript-eslint/no-unused-vars */
- ) {
+ _success(_uploadId, _data, _responseText, _xhr, _requestOptions) {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
}
_upload(event, file, blob) {
*
* @since 5.2
*/
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- validateUpload(files) {
+ validateUpload(_files) {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
return true;
}
/**
* Handles successful Ajax requests.
*/
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- _ajaxSuccess(data: ResponseData): void {
+ _ajaxSuccess(_data: ResponseData): void {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
throw new Error("Implement me!");
return uploadId;
}
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- protected _createFileTableRow(file: File | FileLikeObject): HTMLTableRowElement {
+ protected _createFileTableRow(_file: File | FileLikeObject): HTMLTableRowElement {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
throw new Error("Has to be implemented in subclass.");
* Handles a failed file upload.
*/
protected _failure(
- /* eslint-disable @typescript-eslint/no-unused-vars */
-
- uploadId: number,
- data: ResponseData,
- responseText: string,
- xhr: XMLHttpRequest,
- requestOptions: RequestOptions
-
- /* eslint-enable @typescript-eslint/no-unused-vars */
+ _uploadId: number,
+ _data: ResponseData,
+ _responseText: string,
+ _xhr: XMLHttpRequest,
+ _requestOptions: RequestOptions
): boolean {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
* Handles a successful file upload.
*/
protected _success(
- /* eslint-disable @typescript-eslint/no-unused-vars */
-
- uploadId: number,
- data: ResponseData,
- responseText: string,
- xhr: XMLHttpRequestEventTarget,
- requestOptions: RequestOptions
-
- /* eslint-enable @typescript-eslint/no-unused-vars */
+ _uploadId: number,
+ _data: ResponseData,
+ _responseText: string,
+ _xhr: XMLHttpRequestEventTarget,
+ _requestOptions: RequestOptions
): void {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
}
*
* @since 5.2
*/
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- protected validateUpload(files: FileCollection): boolean {
+ protected validateUpload(_files: FileCollection): boolean {
// This should be an abstract method, but cannot be marked as such for backwards compatibility.
return true;