blob: f63dd6883916a6bc467b7ac97643266352f512f4 (
plain)
1
2
3
4
5
6
7
8
9
|
WorkerScript.onMessage = function(msg) {
if (msg.action == 'removeList') {
msg.model.remove(0);
} else if (msg.action == 'dosync') {
msg.model.sync();
}
WorkerScript.sendMessage({'done': true})
}
|