B2G/gaia/apps/system/js/cards_view.js
// And remove all the cards from the document after the transition
And remove all the cards from the document after the transition
And remove all the cards from the document after the transition
function removeCards() {
      cardsView.removeEventListener('transitionend', removeCards);
      screenElement.classList.remove('cards-view');
      cardsList.innerHTML = '';
      prevCardStyle = currentCardStyle = nextCardStyle = currentCard =
      prevCard = nextCard = deltaX = null;
    }
function removeCards ( ) { cardsView . removeEventListener ( 'transitionend' , removeCards ) ; screenElement . classList . remove ( 'cards-view' ) ; cardsList . innerHTML = '' ; prevCardStyle = currentCardStyle = nextCardStyle = currentCard = prevCard = nextCard = deltaX = null ; }
And remove all the cards from the document after the transition
And remove all the cards from the document after the transition