MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / expectSync

Function expectSync

libs/jquery-3.5.1/jquery-3.5.1.js:5111–5113  ·  view source on GitHub ↗
( elem, type )

Source from the content-addressed store, hash-verified

5109// (focus and blur are always synchronous in other supported browsers,
5110// this just defines when we can count on it).
5111function expectSync( elem, type ) {
5112 return ( elem === safeActiveElement() ) === ( type === "focus" );
5113}
5114
5115// Support: IE <=9 only
5116// Accessing document.activeElement can throw unexpectedly

Callers 1

leverageNativeFunction · 0.85

Calls 1

safeActiveElementFunction · 0.70

Tested by

no test coverage detected