Skip to content

Commit f94e99c

Browse files
committed
update
1 parent ae0a063 commit f94e99c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.DS_Store

0 Bytes
Binary file not shown.

ajaxUpload.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@
8585
if(progressor.length) progressor.text(progress);
8686

8787
o.onProgress.call(this, object);
88-
}
89-
90-
88+
};
9189
// xhr.addEventListener("load", function () {}, false);
9290
xhr.onload = function(){
9391
//update progress bar to 100% in firefox
@@ -100,7 +98,7 @@
10098
// check if response is json object or text
10199
response = sortResponse(xhr.responseText);
102100
o.onComplete.call(this, object, response);
103-
}
101+
};
104102

105103
// xhr.responseType
106104
// xhr.response contain the value fetched from server
@@ -212,7 +210,7 @@
212210
try {$.parseJSON(response);} catch (e) {isJSON = false;}
213211

214212
// response = JSON.parse(xhr.responseText);
215-
if(isJSON == true){ sorted = $.parseJSON(response);}
213+
if(isJSON === true){ sorted = $.parseJSON(response);}
216214
else{sorted = response;}
217215

218216
return sorted;
@@ -265,5 +263,5 @@
265263

266264

267265
});
268-
}
266+
};
269267
})(jQuery);

0 commit comments

Comments
 (0)