rem: if(this.stacks) for(var i = 0; i < this.stacks.length; i++) this.stacks[i].fixLayout(); 
add: if(this.piles) for(var i = 0; i != this.piles.length; i++) this.piles[i].fixLayout(); 
context:   newGame: function() {    this.mouseHandler.reset();    this.score = 0;    this.undoHistory = [];    this.clearGame();    this.clearHints();    this.redealsRemaining = this.redeals;    // reset offset used when stacking cards.    if(this.stacks)      for(var i = 0; i < this.stacks.length; i++)        this.stacks[i].fixLayout();    //    this.deal();    // xxx this should probably happen elsewhere    if(this.stock && this.stock.counter) {      var dealsLeft = this.stock.childNodes.length;      if(!this.waste) dealsLeft = Math.ceil(dealsLeft / this.stockDealTargets.length);      this.stock.counter.value = dealsLeft;    }    this.updateScoreDisplay(); // must do after deal(), because not all games start the score at 0    disableUndo();    disableRedeal();    enableUI();  },
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/15f3df693ddf02fb9ee6a2662189220868368b23/cardgame.js/buggy/cardgame.js