equal
deleted
inserted
replaced
|
1 // ![0] |
|
2 WorkerScript.onMessage = function(msg) { |
|
3 if (msg.action == 'appendCurrentTime') { |
|
4 var data = {'time': new Date().toTimeString()}; |
|
5 msg.model.append(data); |
|
6 msg.model.sync(); // updates the changes to the list |
|
7 } |
|
8 } |
|
9 // ![0] |