diff --git a/src/swap-strategies.js b/src/swap-strategies.js index ba41903c..73ad2b27 100644 --- a/src/swap-strategies.js +++ b/src/swap-strategies.js @@ -13,7 +13,7 @@ export const SwapStrategies = { }, // animate the next view at the same time the current view is removed - with(viewSlot, previousViews, callback) { + with(viewSlot, previous, callback) { return (previous === undefined) ? callback() : Promise.all([remove(viewSlot, previous), callback()]);