this.fieldIndex = 0; this.cells = []; var s = this.structure = []; for(var i=0, viewDef, rows; (viewDef=inStructure[i]); i++){ s.push(this.addViewDef(viewDef)); } this.cellCount = this.cells.length;