@@ -28,7 +28,7 @@ function debugModule(module, runtime) {
2828 var programPaused = false;
2929 var recordedEvents = [];
3030 var eventCounter = 0;
31− var asyncTimers = [];
31+ var asyncCallbacks = [];
3232
3333 function wrapNotify(id, v) {
3434 var timestep = Date.now();
@@ -48,7 +48,7 @@ function debugModule(module, runtime) {
4848
4949 function safeSetTimeout(func, delayMs) {
5050 var timerId = setTimeout(func, delayMs);
51− asyncTimers.push({ func:func, delayMs:delayMs, timerId:timerId });
51+ asyncCallbacks.push({ func:func, delayMs:delayMs, timerId:timerId });
5252 return timerId;
5353 }
5454
@@ -56,8 +56,8 @@ function debugModule(module, runtime) {
5656 recordedEvents.push({ id:id, value:v, timestep:timestep });
5757 }
5858
59− function clearAsyncEvents() {
60− asyncTimers.forEach(function(timer) {
59+ function clearAsyncCallbacks() {
60+ asyncCallbacks.forEach(function(timer) {
6161 clearTimeout(timer.timerId);
6262 });
6363 }
@@ -95,9 +95,9 @@ function debugModule(module, runtime) {
9595 moduleInstance: moduleInstance,
9696 moduleNodes: moduleNodes,
9797 initialNodeValues: saveNodeValues(moduleNodes),
98− initialAsyncTimers: asyncTimers.slice(),
98+ initialAsyncCallbacks: asyncCallbacks.slice(),
9999 // API functions
100− clearAsyncEvents: clearAsyncEvents,
100+ clearAsyncCallbacks: clearAsyncCallbacks,
101101 clearRecordedEvents: clearRecordedEvents,
102102 getRecordedEvents: getRecordedEvents,
103103 getPaused: getPaused,
@@ -113,7 +113,7 @@ function debuggerInit(debugModule, runtime) {
113113 runtime.node.parentNode.appendChild(tracePath.canvas);
114114
115115 function resetProgram() {
116− debugModule.clearAsyncEvents();
116+ debugModule.clearAsyncCallbacks();
117117 restoreNodeValues(debugModule.moduleNodes, debugModule.initialNodeValues);
118118 redrawGraphics();
119119 }
@@ -121,7 +121,7 @@ function debuggerInit(debugModule, runtime) {
121121 function restartProgram() {
122122 resetProgram();
123123 debugModule.clearRecordedEvents();
124− debugModule.initialAsyncTimers.forEach(function(timer) {
124+ debugModule.initialAsyncCallbacks.forEach(function(timer) {
125125 var func = timer.func;
126126 func();
127127 });