rem:  this.stacks = new Array(8); for(var i = 0; i < 8; i++) { this.stacks[i] = document.getElementById("pile-"+i); this.stacks[i].isPile = true; } this.foundations = new Array(4); for(var i = 0; i < 4; i++) { this.foundations[i] = document.getElementById("foundation-"+i); this.foundations[i].isFoundation = true; } this.cells = new Array(4); for(var i = 0; i < 4; i++) { this.cells[i] = document.getElementById("cell-"+i); this.cells[i].isCell = true; }  this.allstacks = this.stacks.concat(this.cells,this.foundations); 
add: this.shortname = "freecell"; this.initStacks(8,4,0,false,false,0,0,4); 
context: FreeCell.init = function() {  //XXX kill all this garbage and use initStacks() instead  this.stacks = new Array(8);  for(var i = 0; i < 8; i++) {    this.stacks[i] = document.getElementById("pile-"+i);    this.stacks[i].isPile = true;  }  this.foundations = new Array(4);  for(var i = 0; i < 4; i++) {    this.foundations[i] = document.getElementById("foundation-"+i);    this.foundations[i].isFoundation = true;  }  this.cells = new Array(4);  for(var i = 0; i < 4; i++) {    this.cells[i] = document.getElementById("cell-"+i);    this.cells[i].isCell = true;  }  //  this.allstacks = this.stacks.concat(this.cells,this.foundations);};
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3385/916061f4fa119a0a46876629bfe8719e0f0023ec/freecell.js/buggy/freecell.js