MCPcopy Create free account
hub / github.com/Yaffle/EventSource / onProgress

Function onProgress

tests/eventsource.js:286–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 }
285 };
286 var onProgress = function () {
287 onStart();
288 if (state === 2 || state === 3) {
289 state = 3;
290 var responseText = "";
291 try {
292 responseText = xhr.responseText;
293 } catch (error) {
294 // IE 8 - 9 with XMLHttpRequest
295 }
296 that.readyState = 3;
297 that.responseText = responseText;
298 that.onprogress();
299 }
300 };
301 var onFinish = function (type, event) {
302 if (event == null || event.preventDefault == null) {
303 event = {

Callers 3

onFinishFunction · 0.70
onReadyStateChangeFunction · 0.70
onTimeoutFunction · 0.70

Calls 4

onStartFunction · 0.70
parseDurationFunction · 0.70
onTimeoutFunction · 0.70
fireFunction · 0.70

Tested by

no test coverage detected