Merge pull request #1548 from nasa/no-recursive-mutation-on-composition

[API] track composition before notifying listeners
This commit is contained in:
Andrew Henry 2017-04-27 14:46:02 -07:00 committed by GitHub
commit 1d7d963a4f

View File

@ -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;