Skip to content
Snippets Groups Projects
  • George Kiagiadakis's avatar
    269b9e19
    registry: use a temporary globals list · 269b9e19
    George Kiagiadakis authored
    When a new global is created, it is not certain
    if the registry global event or the proxy bound event will
    be fired first. In order to make sure we associate all
    proxies to their WpGlobals correctly, we now wait a core sync
    before exposing globals to the object managers, so that in case
    the implementation proxy receives the bound event after the
    registry creates the WpGlobal, we can make sure to use this
    proxy instead of constructing a new one through the object managers
    269b9e19
    History
    registry: use a temporary globals list
    George Kiagiadakis authored
    When a new global is created, it is not certain
    if the registry global event or the proxy bound event will
    be fired first. In order to make sure we associate all
    proxies to their WpGlobals correctly, we now wait a core sync
    before exposing globals to the object managers, so that in case
    the implementation proxy receives the bound event after the
    registry creates the WpGlobal, we can make sure to use this
    proxy instead of constructing a new one through the object managers