summaryrefslogtreecommitdiffstats
path: root/examples/declarative/listmodel-threaded/dataloader.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/listmodel-threaded/dataloader.js')
-rw-r--r--examples/declarative/listmodel-threaded/dataloader.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/declarative/listmodel-threaded/dataloader.js b/examples/declarative/listmodel-threaded/dataloader.js
index eac7478..d720f09 100644
--- a/examples/declarative/listmodel-threaded/dataloader.js
+++ b/examples/declarative/listmodel-threaded/dataloader.js
@@ -1,14 +1,9 @@
// ![0]
WorkerScript.onMessage = function(msg) {
- console.log("Worker told to", msg.action);
-
if (msg.action == 'appendCurrentTime') {
var data = {'time': new Date().toTimeString()};
msg.model.append(data);
msg.model.sync(); // updates the changes to the list
-
- var msgToSend = {'msg': 'Model updated!'};
- WorkerScript.sendMessage(msgToSend);
}
}
// ![0]