diff --git a/.eslintrc b/.eslintrc index 3fbfc3524..3269a3eae 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,7 +14,8 @@ "Fix": true, "module": true, "Demo": true, - "_global": true + "_global": true, + "ActiveXObject": true }, "parser": "@typescript-eslint/parser", "parserOptions": { diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index 4ea51047e..570526f36 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -251,7 +251,7 @@ } else { // Internet Explorer, Opera, others sendFile = function (handler, maxSize, width, height) { - var current = handler.current; + var current = handler.current, iframe, form; var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"), rpe = { loaded: 1, total: 100, simulation: true, interval: setInterval(function () { @@ -499,9 +499,9 @@ if (this.file.fileSize !== -1) { // simulation property indicates when the progress event is fake if (rpe.simulation) { - + // empty } else { - + // empty } } else { // if fileSIze is -1 browser is using an iframe because it does