Ticket #2411: removeData.diff
| File removeData.diff, 0.7 kB (added by flesler, 10 months ago) |
|---|
-
src/core.js
692 692 windowData : 693 693 elem; 694 694 695 var id = elem[ expando ] ;695 var id = elem[ expando ], ret; 696 696 697 697 // If we want to remove a specific section of the element's data 698 698 if ( name ) { 699 699 if ( jQuery.cache[ id ] ) { 700 700 // Remove the section of cache data 701 ret = jQuery.cache[ id ][ name ]; 701 702 delete jQuery.cache[ id ][ name ]; 702 703 703 704 // If we've removed all the data, remove the element's cache … … 725 726 // Completely remove the data cache 726 727 delete jQuery.cache[ id ]; 727 728 } 729 return ret; 728 730 }, 729 731 730 732 // args is for internal usage only
