aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativelistmodel/data/script.js
blob: 66a4acb8a87c02795df6ad29c72181c05aadd58e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
WorkerScript.onMessage = function(msg) {
    var result = null
    try {
        for (var i=0; i<msg.commands.length; i++) {
            var c = 'msg.model.' + msg.commands[i]
            result = eval(c)
        }
        msg.model.sync()
    } catch(e) { }
    WorkerScript.sendMessage({'done': true, 'result': result})
}