From 7d9f75b14dd6cb55c291b6088297fe530df18c65 Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Fri, 29 Apr 2016 17:36:09 -0400 Subject: [PATCH] updating _removeThread to actually match docs --- src/engine/runtime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 9fa953563..d97247e58 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -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); };