nextcloud/core/js
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
..
dist Work around snap.js state mess 2020-11-02 17:31:18 +01:00
login The loading animation is back 2019-10-26 23:08:52 +02:00
public Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
tests Work around snap.js state mess 2020-11-02 17:31:18 +01:00
backgroundjobs.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
core.json Move the systemtags to core/src 2020-05-28 19:05:09 +00:00
merged-template-prepend.json Remove empty js.js 2019-05-15 10:40:53 +02:00
mimetype.js Fix usage of deprecated OC.webroot 2018-10-09 13:53:59 +02:00
mimetypelist.js Add mindmap mimetype. 2020-04-15 01:19:58 +08:00
publicshareauth.js No more jQuery 2020-02-06 20:41:42 +01:00
select2-toggleselect.js Added system tags GUI in sidebar 2016-01-19 16:24:26 +01:00
setupchecks.js Add SVG support check to setup check 2020-11-02 11:29:08 +01:00
update.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00