aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/threading/workerscript/workerscript.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/threading/workerscript/workerscript.js')
-rw-r--r--examples/quick/threading/workerscript/workerscript.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/threading/workerscript/workerscript.js b/examples/quick/threading/workerscript/workerscript.js
index ada3d82589..67fbd8af9a 100644
--- a/examples/quick/threading/workerscript/workerscript.js
+++ b/examples/quick/threading/workerscript/workerscript.js
@@ -12,7 +12,7 @@ function triangle(row, column) {
return 1;
return triangle(row-1, column-1) + triangle(row-1, column);
}
-
+//! [0]
WorkerScript.onMessage = function(message) {
//Calculate result (may take a while, using a naive algorithm)
var calculatedResult = triangle(message.row, message.column);
@@ -21,4 +21,4 @@ WorkerScript.onMessage = function(message) {
column: message.column,
result: calculatedResult} );
}
-
+//! [0]