MCPcopy Create free account
hub / github.com/flowjs/flow.js / FakeXMLHttpRequestProgressEvent

Function FakeXMLHttpRequestProgressEvent

test/FakeXMLHttpRequestUpload.js:34–39  ·  view source on GitHub ↗
(
      type, bubbles, cancelable, target, loaded, total, lengthComputable
    )

Source from the content-addressed store, hash-verified

32 sinon.extend(FakeXMLHttpRequestUpload.prototype, sinon.EventTarget);
33
34 function FakeXMLHttpRequestProgressEvent(
35 type, bubbles, cancelable, target, loaded, total, lengthComputable
36 ) {
37 this.initEvent(type, bubbles, cancelable, target);
38 this.initProgressEvent(loaded || 0, total || 0, lengthComputable || false);
39 }
40
41 sinon.extend(FakeXMLHttpRequestProgressEvent.prototype, sinon.Event.prototype, {
42 initProgressEvent: function initProgressEvent(loaded, total, lengthComputable) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected