(data, c)
| 688 | var msgId = 0, pending = {}; |
| 689 | |
| 690 | function send(data, c) { |
| 691 | if (c) { |
| 692 | data.id = ++msgId; |
| 693 | pending[msgId] = c; |
| 694 | } |
| 695 | worker.postMessage(data); |
| 696 | } |
| 697 | worker.onmessage = function(e) { |
| 698 | var data = e.data; |
| 699 | if (data.type == "getFile") { |