( obj )
| 341 | |
| 342 | // checks a cache object for emptiness |
| 343 | function 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 ); |