mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Persistence] Begin integrating persistence queue
Begin integrating persistence queue, tweaking for issues detected through minimal use. WTD-1033.
This commit is contained in:
@ -15,12 +15,11 @@ define(
|
||||
* the capability
|
||||
*/
|
||||
function QueuingPersistenceCapability(queue, persistence, domainObject) {
|
||||
var queuingPersistence = Object.create(persistence),
|
||||
id = domainObject.getId();
|
||||
var queuingPersistence = Object.create(persistence);
|
||||
|
||||
// Override persist calls to queue them instead
|
||||
queuingPersistence.persist = function () {
|
||||
queue.put(id, persistence);
|
||||
return queue.put(domainObject, persistence);
|
||||
};
|
||||
|
||||
return queuingPersistence;
|
||||
|
Reference in New Issue
Block a user