MCPcopy Create free account
hub / github.com/ceph/ceph / DOMContentLoaded

Function DOMContentLoaded

qa/workunits/erasure-code/jquery.js:80–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79 // The ready event handler and self cleanup method
80 DOMContentLoaded = function() {
81 if ( document.addEventListener ) {
82 document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
83 jQuery.ready();
84 } else if ( document.readyState === "complete" ) {
85 // we're here because readyState === "complete" in oldIE
86 // which is good enough for us to call the dom ready!
87 document.detachEvent( "onreadystatechange", DOMContentLoaded );
88 jQuery.ready();
89 }
90 },
91
92 // [[Class]] -> type pairs
93 class2type = {};

Callers

nothing calls this directly

Calls 1

readyMethod · 0.45

Tested by

no test coverage detected