MCPcopy
hub / github.com/requirejs/requirejs / isEmptyDataObject

Function isEmptyDataObject

tests/jquery/scripts/jquery-1.7.1.js:1962–1975  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

1960
1961// checks a cache object for emptiness
1962function isEmptyDataObject( obj ) {
1963 for ( var name in obj ) {
1964
1965 // if the public data object is empty, the private is still empty
1966 if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
1967 continue;
1968 }
1969 if ( name !== "toJSON" ) {
1970 return false;
1971 }
1972 }
1973
1974 return true;
1975}
1976
1977
1978

Callers 1

jquery-1.7.1.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…