Browse Source

Pull request #2997: KERNEL-12408:base中eslint的修改

Merge in VISUAL/fineui from ~CHAOS.WANG/fineui:master to master

* commit '3755aca7b4a8866ed9b7e77e6c787a5ca10cd40c':
  KERNEL-12408:base中eslint的修改
  KERNEL-12408:base中eslint的修改
es6
Chaos.Wang 2 years ago
parent
commit
1ed58f2cea
  1. 8
      src/base/single/input/file.js

8
src/base/single/input/file.js

@ -88,7 +88,7 @@
var split = "onabort.onerror.onloadstart.onprogress".split("."),
length = split.length,
CRLF = "\r\n",
xhr = XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"),
xhr = new XMLHttpRequest,
sendFile;
function multipart(boundary, name, file) {
return "--".concat(
@ -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

Loading…
Cancel
Save