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