rem: for(var i = 0; i < stacks.length; i++) { 
add: for(i = 0; i < stacks.length; i++) { 
context:   redeal: function() {    var stacks = this.stacks;    var numdown = [];    var numup = [];    var cards = [];    // remove cards and store pattern    for(var i = 0; i < stacks.length; i++) {      var down = 0, up = 0;      while(stacks[i].hasChildNodes()) {        var card = stacks[i].removeChild(stacks[i].lastChild);        if(card.faceDown()) down++;        else up++;        card.setFaceDown();        cards.push(card);      }      numdown.push(down);      numup.push(up);    }    // shuffle    this.shuffle(cards);    // deal out again    for(var i = 0; i < stacks.length; i++) {      this.dealToStack(cards,this.stacks[i],numdown[i],numup[i]);    }  },
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/18726c46ae066c60dc1639ccdfb7e83076143c1f/cardgame.js/clean/cardgame.js