diff options
Diffstat (limited to 'examples/declarative/workerscript/workerscript.js')
-rw-r--r-- | examples/declarative/workerscript/workerscript.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/declarative/workerscript/workerscript.js b/examples/declarative/workerscript/workerscript.js new file mode 100644 index 0000000..060c04a --- /dev/null +++ b/examples/declarative/workerscript/workerscript.js @@ -0,0 +1,5 @@ +onmessage = function(message) { + print ("You clicked the " + message.rectangle + " rectangle."); + print ("The coordinates were: " + message.x + "," + message.y); +} + |