js/decklist/main.js
// and removes those matching cards from sideQuants
and removes those matching cards from sideQuants
and removes those matching cards from sideQuants
function addSideQuants(element) {
    foundSideElement = false;
    for (i = 0; i < sideQuants.length && sideQuants.length && foundSideElement === false; i++) {
      if (sideQuants[i][0] === element[0]) {
        foundSideElement = i;
      }
    }
    if (typeof foundSideElement === 'number') {
      element[1] = (parseInt(element[1]) + parseInt(sideQuants[foundSideElement][1])).toString();
      sideQuants.splice(foundSideElement, 1);
    }
    return element;
  }
function addSideQuants ( element ) { foundSideElement = false ; for ( i = 0 ; i < sideQuants . length && sideQuants . length && foundSideElement === false ; i ++ ) { if ( sideQuants [ i ] [ 0 ] === element [ 0 ] ) { foundSideElement = i ; } } if ( typeof foundSideElement === 'number' ) { element [ 1 ] = ( parseInt ( element [ 1 ] ) + parseInt ( sideQuants [ foundSideElement ] [ 1 ] ) ) . toString ( ) ; sideQuants . splice ( foundSideElement , 1 ) ; } return element ; }
and removes those matching cards from sideQuants
and removes those matching cards from sideQuants