mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 14:02:37 -05:00
updating _removeThread to actually match docs
This commit is contained in:
parent
96123f870f
commit
7d9f75b14d
1 changed files with 3 additions and 3 deletions
|
@ -172,10 +172,10 @@ Runtime.prototype._pushThread = function (id) {
|
|||
|
||||
/**
|
||||
* Remove a thread from the list of threads.
|
||||
* @param {!Thread} thread Thread object to remove from actives
|
||||
* @param {?Thread} thread Thread object to remove from actives
|
||||
*/
|
||||
Runtime.prototype._removeThread = function (id) {
|
||||
var i = this.threads.indexOf(id);
|
||||
Runtime.prototype._removeThread = function (thread) {
|
||||
var i = this.threads.indexOf(thread);
|
||||
if (i > -1) this.threads.splice(i, 1);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue