on master help sign in
Merge pull request #738 from michaelbjames/debugger
0e30355Evan Czaplicki
runtime/Debugger.js+4−4
@@ -190,7 +190,7 @@ function debugModule(module, runtime) {
190 recordedEvents = recordedEvents.slice(0, position);
190 recordedEvents = recordedEvents.slice(0, position);
191 tracePath.clearTracesAfter(position);
191 tracePath.clearTracesAfter(position);
192 runtime.debuggerStatus.eventCounter = position;
192 runtime.debuggerStatus.eventCounter = position;
193− executeCallbacks(asyncCallbacks, false);
193+ executeCallbacks(asyncCallbacks);
194
194
195 tracePath.startRecording();
195 tracePath.startRecording();
196 }
196 }
@@ -240,7 +240,7 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
240 debugModule.clearRecordedEvents();
240 debugModule.clearRecordedEvents();
241 debugModule.clearSnapshots();
241 debugModule.clearSnapshots();
242 debugModule.setContinue(0);
242 debugModule.setContinue(0);
243− executeCallbacks(debugModule.initialAsyncCallbacks, true);
243+ executeCallbacks(debugModule.initialAsyncCallbacks);
244 }
244 }
245
245
246 function pauseProgram() {
246 function pauseProgram() {
@@ -495,9 +495,9 @@ function tracePathInit(runtime, signalGraphMain) {
495 }
495 }
496}
496}
497
497
498−function executeCallbacks(callbacks, reexecute) {
498+function executeCallbacks(callbacks) {
499 callbacks.forEach(function(timer) {
499 callbacks.forEach(function(timer) {
500− if (reexecute || !timer.executed) {
500+ if (!timer.executed) {
501 var func = timer.func;
501 var func = timer.func;
502 timer.executed = true;
502 timer.executed = true;
503 func();
503 func();