on master help sign in
Merge pull request #738 from michaelbjames/debugger

Removed reexecute parameter -- we never needed it

commit0e30355e212e56d9d1c11537eb41fa6dddf9e5ce authorEvan Czaplicki <info@elm-lang.org> dateMon 11 Aug 2014, 11:44 (12 years ago) parente3df4ad8e31445
1 file changed+4−4
runtime/Debugger.js+4−4
runtime/Debugger.js+4−4
@@ -190,7 +190,7 @@ function debugModule(module, runtime) {
190190 recordedEvents = recordedEvents.slice(0, position);
191191 tracePath.clearTracesAfter(position);
192192 runtime.debuggerStatus.eventCounter = position;
193− executeCallbacks(asyncCallbacks, false);
193+ executeCallbacks(asyncCallbacks);
194194
195195 tracePath.startRecording();
196196 }
@@ -240,7 +240,7 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
240240 debugModule.clearRecordedEvents();
241241 debugModule.clearSnapshots();
242242 debugModule.setContinue(0);
243− executeCallbacks(debugModule.initialAsyncCallbacks, true);
243+ executeCallbacks(debugModule.initialAsyncCallbacks);
244244 }
245245
246246 function pauseProgram() {
@@ -495,9 +495,9 @@ function tracePathInit(runtime, signalGraphMain) {
495495 }
496496}
497497
498−function executeCallbacks(callbacks, reexecute) {
498+function executeCallbacks(callbacks) {
499499 callbacks.forEach(function(timer) {
500− if (reexecute || !timer.executed) {
500+ if (!timer.executed) {
501501 var func = timer.func;
502502 timer.executed = true;
503503 func();