mirror of
https://github.com/nasa/openmct.git
synced 2025-06-03 16:10:54 +00:00
[Workers] Satisfy JSLint
Modify example worker script to satisfy JSLint. #12.
This commit is contained in:
parent
640a399278
commit
eb2cddc063
@ -1,4 +1,4 @@
|
|||||||
/*global onmessage,postMessage*/
|
/*global self*/
|
||||||
(function () {
|
(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
@ -9,7 +9,7 @@
|
|||||||
return n < 2 ? n : (fib(n - 1) + fib(n - 2));
|
return n < 2 ? n : (fib(n - 1) + fib(n - 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
onmessage = function (event) {
|
self.onmessage = function (event) {
|
||||||
postMessage(fib(event.data));
|
self.postMessage(fib(event.data));
|
||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user