Huy Nguyen 3d19923731 [Trait collection] Correctly handle changes that occur mid-updates (#3224)
* Add unit test to test trait collection changes occur during updates are handles correctly

* Remove handling code in ASDataController:updateWithChangeSet. Previous test should fail

* Correctly handle trait collection changes that occur mid-updates
- Currently, when there is a new trait collection, we correctly propagate it to all visible elements. However, since the propagating block is executed on main thread immediately without waiting for the background editing queue of ASDataController, not all elements are updated.
- Then to fix that, we updated ASDataController to handle these changes inside updateWithChangeSet. This works, but it doesn’t address the underlying issue.
- We now delegate the propagating task to ASDataController which schedule a block to its main serial queue after waiting for its background editing queue.
2017-03-31 10:47:59 -07:00
..
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00
2017-02-26 18:14:13 -08:00