MCPcopy Create free account
hub / github.com/JsAaron/jQuery / isEmptyDataObject

Function isEmptyDataObject

2.1.1/test/jquery-1.11.1.js:3667–3681  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

3665
3666// checks a cache object for emptiness
3667function isEmptyDataObject( obj ) {
3668 var name;
3669 for ( name in obj ) {
3670
3671 // if the public data object is empty, the private is still empty
3672 if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
3673 continue;
3674 }
3675 if ( name !== "toJSON" ) {
3676 return false;
3677 }
3678 }
3679
3680 return true;
3681}
3682
3683function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
3684 if ( !jQuery.acceptData( elem ) ) {

Callers 2

internalRemoveDataFunction · 0.70
jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected