mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 21:58:13 +00:00
[Composition] Update specs
Update specs for changes to the return value of composition.add, nasa/openmctweb#97
This commit is contained in:
@ -52,10 +52,10 @@ define(
|
||||
// Take the most recently modified model, for cases where
|
||||
// multiple persistence spaces return models.
|
||||
function takeMostRecent(modelA, modelB) {
|
||||
return (!modelA || modelA.modified === undefined) ? modelB :
|
||||
(!modelB || modelB.modified === undefined) ? modelA :
|
||||
modelA.modified > modelB.modified ? modelA :
|
||||
modelB;
|
||||
return (!modelB || modelB.modified === undefined) ? modelA :
|
||||
(!modelA || modelA.modified === undefined) ? modelB :
|
||||
modelB.modified > modelA.modified ? modelB :
|
||||
modelA;
|
||||
}
|
||||
|
||||
PersistedModelProvider.prototype.getModels = function (ids) {
|
||||
|
Reference in New Issue
Block a user