If a given modal is already active and render is called again, don't
include the animation.
In addition, by returning early before calling delegateModalEvents
again, this should fix a potential memory leak where the previously
attached event handlers weren't being removed before attaching the new
ones.
If a given modal is already active and
render
is called again, don't include the animation.In addition, by returning early before calling
delegateModalEvents
again, this should fix a potential memory leak where the previously attached event handlers weren't being removed before attaching the new ones.