qwp Initial release
[qwp] / qml / qwp / dataloader.js
diff --git a/qml/qwp/dataloader.js b/qml/qwp/dataloader.js
new file mode 100644 (file)
index 0000000..c26e286
--- /dev/null
@@ -0,0 +1,9 @@
+// ![0]
+WorkerScript.onMessage = function(msg) {
+    if (msg.action == 'appendCurrentTime') {
+        var data = {'time': new Date().toTimeString()};
+        msg.model.reload(); //append(data);
+        //msg.model.sync();   // updates the changes to the list
+    }
+}
+// ![0]