Created
September 14, 2012 09:35
-
-
Save ppcano/3721023 to your computer and use it in GitHub Desktop.
Ember-data cleanRecordCache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Yn.Store = DS.Store.extend({ | |
| revision: 4, | |
| serverDomain: "", | |
| adapter: Yn.DjangoTastypieAdapter.create({ | |
| }), | |
| cleanRecordCache: function(type) { | |
| var typeMaps = this.get('typeMaps'); | |
| var guidForType = Ember.guidFor(type); | |
| typeMaps[guidForType] = { | |
| idToCid: {}, | |
| clientIds: [], | |
| cidToHash: {}, | |
| recordArrays: [] | |
| }; | |
| this.set('typeMaps', typeMaps); | |
| } | |
| }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is necessary to unload a specific record?