MCPcopy Create free account
hub / github.com/F-Stack/f-stack / isEmptyDataObject

Function isEmptyDataObject

tools/libxo/xohtml/external/jquery.js:2013–2026  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

2011
2012// checks a cache object for emptiness
2013function isEmptyDataObject( obj ) {
2014 for ( var name in obj ) {
2015
2016 // if the public data object is empty, the private is still empty
2017 if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
2018 continue;
2019 }
2020 if ( name !== "toJSON" ) {
2021 return false;
2022 }
2023 }
2024
2025 return true;
2026}
2027
2028
2029

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected