Wirecloud / wirecloud

Widgets Container and Mashup edition tools. Reference implementation of the FIWARE Application Mashup GE
https://wirecloud.rtfd.io/
Other
60 stars 45 forks source link

Use a timeout for switching between alternatives #468

Closed aarranz closed 4 years ago

aarranz commented 4 years ago

Currently, StyledElements.Alternatives code relies on transitionend events to detect when animations have finished. This PR makes StyledElements.Alternatives to use a timeout promise to make code work even if those events are not raised.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.009%) to 81.849% when pulling 6f276cde7ccf3b059719b881857625dc6c8cb820 on aarranz:fix/alternatives-race-condition into 4d070d180020067b9c0d49ea6b2aaa3d9ab4d233 on Wirecloud:develop.