Skip to content

Dead Code Quest: updateMapSize in map.js #941

Description

@theduckylittle

Look at this guy right here:

   // IE has some DOM sizing/display issues on startup
    //  when we're using react. This ensures the map is
    //  drawn correctly on startup.
    const updateMapSize = this.updateMapSize;
    if (!updateMapSize()) {
      const startupInterval = setInterval(function () {
        if (updateMapSize()) {
          clearInterval(startupInterval);
        }
      }, 250);
    }

Traceback whether this is necessary with modern ResizeOberservers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions