MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / stateChange

Function stateChange

test/helpers/sinon.js:3624–3636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3622 };
3623
3624 var stateChange = function() {
3625 fakeXhr.readyState = xhr.readyState;
3626 if(xhr.readyState >= FakeXMLHttpRequest.HEADERS_RECEIVED) {
3627 copyAttrs(["status","statusText"]);
3628 }
3629 if(xhr.readyState >= FakeXMLHttpRequest.LOADING) {
3630 copyAttrs(["responseText"]);
3631 }
3632 if(xhr.readyState === FakeXMLHttpRequest.DONE) {
3633 copyAttrs(["responseXML"]);
3634 }
3635 if(fakeXhr.onreadystatechange) fakeXhr.onreadystatechange.call(fakeXhr, { target: fakeXhr });
3636 };
3637 if(xhr.addEventListener) {
3638 for(var event in fakeXhr.eventListeners) {
3639 if(fakeXhr.eventListeners.hasOwnProperty(event)) {

Callers

nothing calls this directly

Calls 1

copyAttrsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…