MCPcopy Index your code
hub / github.com/JsAaron/jQuery / isEmptyDataObject

Function isEmptyDataObject

1.7/data.js:343–356  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

341
342// checks a cache object for emptiness
343function isEmptyDataObject( obj ) {
344 for ( var name in obj ) {
345
346 // if the public data object is empty, the private is still empty
347 if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
348 continue;
349 }
350 if ( name !== "toJSON" ) {
351 return false;
352 }
353 }
354
355 return true;
356}
357
358})( jQuery );

Callers 1

data.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected