nextcloud/core/js/tests
Vincent Petry f2de58db8c
Work around snap.js state mess
Snap.js is not robust enough to prevent multiple calls to open() or
close(), so we added more checks to prevent these happening even when an
animation is in progress.

Because if we let this through, snap.js will not notice that the
animation is already done (or a duplicate animation was started),
so the "transitionend" event will not fire a second time.

During an animation, snap.js sets up a setInterval() that hogs the CPU
during the animation. Since a transition doesn't always end due to the
above conditions, that CPU hogging would stay forever.

This is the best workaround so far, it seems it's not possible to cancel
that interval from the outside nor to trigger events to make it do so.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-02 17:31:18 +01:00
..
specs Work around snap.js state mess 2020-11-02 17:31:18 +01:00
html-domparser.js Fix domparser on phantomjs 2019-03-07 10:45:47 +01:00
specHelper.js Move OC.theme to the bundle and deprecate oc_defaults 2019-05-14 11:14:29 +02:00