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