when I try to edit table items the game hangs in a...
# haxe-ui
w
when I try to edit table items the game hangs in an infinite loop, i'm using this:
Copy code
hx
function onScoresReceive(scores:Array<Score>)
{
    if (scores.length > size)
        throw 'expected ' + size + ' scores';
    
    for (i=>score in scores)
    {
        scoreList.dataSource.update(i,
            { rank : Std.string(page * size + i)
            , user : score.user.name
            , score: score.formattedValue
            }
        );
    }
}
on this
Copy code
xml
<tableview id="scoreList" width="100%" style="padding:0;">
    <header width="100%" height="0">
        <column id="rank"  text="Rank"/>
        <column id="user"  text="User" width="100%"/>
        <column id="score" text="Score" width="100"/>
    </header>
    <data>
        <item rank="1"  user="GeoKureli" score="0"/>
        <item rank="2"  user="GeoKureli" score="0"/>
        <item rank="3"  user="GeoKureli" score="0"/>
        <item rank="4"  user="GeoKureli" score="0"/>
        <item rank="5"  user="GeoKureli" score="0"/>
        <item rank="6"  user="GeoKureli" score="0"/>
        <item rank="7"  user="GeoKureli" score="0"/>
        <item rank="8"  user="GeoKureli" score="0"/>
        <item rank="9"  user="GeoKureli" score="0"/>
        <item rank="10" user="GeoKureli" score="0"/>
    </data>
</tableview>