mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-10 05:14:05 -05:00
The `recalculate` method currently does three things: 1. sync's the internal store with the DOM 2. updates the saved positional and dimensional data from the new DOM 3. allows the mode to be set The problem with using it as the way to set the mode is that, every call to it is effectively setting the mode but this isn't always the intention. This splits off setting the mode so other modules have to explicity set it and those that don't intend to can just call `recalculate` to notify of DOM changes.