on master help sign in
Make "Restart" work properly
commitd6201eedf9ac5000ca0f1d5516ae6b7214c16d07 authorEvan Czaplicki <info@elm-lang.org> dateSun 13 Apr 2014, 22:08 (13 years ago) parent36b532a
1 file changed+4−2
runtime/Debugger.js+4−2
runtime/Debugger.js+4−2
@@ -227,8 +227,10 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
227227 }
228228
229229 function redrawGraphics() {
230− var graphicsNode = debugModule.moduleInstance.main.kids[0];
231− graphicsNode.recv(Date.now(), true, debugModule.moduleInstance.main.id);
230+ var main = debugModule.moduleInstance.main
231+ for (var i = main.kids.length ; i-- ; ) {
232+ main.kids[i].recv(Date.now(), true, main.id);
233+ }
232234 }
233235
234236 function getHotSwapState() {