Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Network: Prevent crash when dataChanged is triggered during initialization #3568

Merged
merged 2 commits into from
Oct 13, 2017

Commits on Oct 13, 2017

  1. Network: Prevent crash when dataChanged is triggered during initial s…

    …etting of options
    
    Fixes almende#3562.
    
    Options `hidden` and `physics` can emit a `_dataChanged` event within `setOptions()`.
    If this happens when setting options during the initialization of the `Network` instance, this leads
    to an error thrown, because there is no DataSet instance  connected yet to the instance.
    
    This bug was introduced in `v4.21.0`. Unit tests have been added for this case.
    wimrijnders committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    f3d6ee4 View commit details
    Browse the repository at this point in the history
  2. Edited comment

    wimrijnders committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    cb2cf02 View commit details
    Browse the repository at this point in the history