( obj )
| 2011 | |
| 2012 | // checks a cache object for emptiness |
| 2013 | function 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 |