|
@@ -155,7 +155,7 @@ window.Element.prototype._x_toggleAndCascadeWithTransitions = function (el, valu
|
|
let carry = Promise.all([
|
|
let carry = Promise.all([
|
|
el._x_hidePromise,
|
|
el._x_hidePromise,
|
|
...(el._x_hideChildren || []).map(hideAfterChildren)
|
|
...(el._x_hideChildren || []).map(hideAfterChildren)
|
|
- ]).then(([i]) => i && i())
|
|
|
|
|
|
+ ]).then(([i]) => i())
|
|
|
|
|
|
delete el._x_hidePromise
|
|
delete el._x_hidePromise
|
|
delete el._x_hideChildren
|
|
delete el._x_hideChildren
|
|
@@ -235,9 +235,7 @@ export function performTransition(el, stages, entering) {
|
|
el._x_transitioning = {
|
|
el._x_transitioning = {
|
|
beforeCancels: [],
|
|
beforeCancels: [],
|
|
beforeCancel(callback) { this.beforeCancels.push(callback) },
|
|
beforeCancel(callback) { this.beforeCancels.push(callback) },
|
|
- cancel: once(function () {
|
|
|
|
- while (this.beforeCancels.length) { this.beforeCancels.shift()() }; finish();
|
|
|
|
- }),
|
|
|
|
|
|
+ cancel: once(function () { while (this.beforeCancels.length) { this.beforeCancels.shift()() }; finish(); }),
|
|
finish,
|
|
finish,
|
|
entering
|
|
entering
|
|
}
|
|
}
|