mirror of
https://github.com/nasa/openmct.git
synced 2025-04-14 22:46:44 +00:00
Merge pull request #1548 from nasa/no-recursive-mutation-on-composition
[API] track composition before notifying listeners
This commit is contained in:
commit
1d7d963a4f
@ -218,6 +218,8 @@ define([
|
||||
};
|
||||
}
|
||||
|
||||
listeners.composition = newComposition.map(objectUtils.parseKeyString);
|
||||
|
||||
added.forEach(function (addedChild) {
|
||||
listeners.add.forEach(notify(addedChild));
|
||||
});
|
||||
@ -226,7 +228,7 @@ define([
|
||||
listeners.remove.forEach(notify(removedChild));
|
||||
});
|
||||
|
||||
listeners.composition = newComposition.map(objectUtils.parseKeyString);
|
||||
|
||||
};
|
||||
|
||||
return DefaultCompositionProvider;
|
||||
|
Loading…
x
Reference in New Issue
Block a user