вот часть класса:
function Table(seats){
//editables
var leaveTable_position=new Array('380','0','102','20');
//runtime
Table.id=0;
Table.max_buy=0;
Table.min_buy=0;
Table.player_timeout=0;
//on creation
Table.seat=new Array();
if (seats<5){seats=5;}
if (seats>5){seats=9;}
for (var i=1 ; i<=seats ; i++){
Table.seat[i]=new Seat(i);
Table.seat[i].create();
}}
вы видите открытый массив Table.seat?
при условии, что у меня есть 3 места (table.seat [0]; table.seat [2];) ...
следующий код дает мне «место не определено» !!!
table=new Table();
table.seat[2].getUser();
есть идеи, почему? Я не так хорош в JS OOP!