mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 06:29:25 -04:00
Add .eslintrc rule to check JSDoc syntax
And fix the broken syntax rules
This commit is contained in:
parent
8081ec3a16
commit
1f1a4941f3
7 changed files with 17 additions and 11 deletions
src/engine
|
@ -26,6 +26,7 @@ Sequencer.WORK_TIME = 10;
|
|||
|
||||
/**
|
||||
* Step through all threads in `this.threads`, running them in order.
|
||||
* @param {Array.<Thread>} threads List of which threads to step.
|
||||
* @return {Array.<Thread>} All threads which have finished in this iteration.
|
||||
*/
|
||||
Sequencer.prototype.stepThreads = function (threads) {
|
||||
|
@ -139,6 +140,9 @@ Sequencer.prototype.stepThread = function (thread) {
|
|||
/**
|
||||
* A callback for the primitive to start hats.
|
||||
* @todo very hacked...
|
||||
* Provide a callback that is passed in a block and returns true
|
||||
* if it is a hat that should be triggered.
|
||||
* @param {Function} callback Provided callback.
|
||||
*/
|
||||
var startHats = function(callback) {
|
||||
var stacks = instance.runtime.blocks.getStacks();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue