Also remove 'once' event listeners when destroying (they may still be waiting)

This commit is contained in:
Albin Larsson
2018-06-12 19:43:08 +02:00
parent 53933dff7e
commit 927326f715
4 changed files with 6 additions and 6 deletions

2
src/js/controls.js vendored
View File

@ -1068,7 +1068,7 @@ const controls = {
};
// Listen for the transition finishing and restore auto height/width
once(container, transitionEndEvent, restore);
once.call(this, container, transitionEndEvent, restore);
// Set dimensions to target
container.style.width = `${size.width}px`;