@@ -7,9 +7,7 @@ Elm.debuggerAttach = function(module) {
8 make: function(runtime) {
8 make: function(runtime) {
9 var wrappedModule = debugModule(module, runtime);
9 var wrappedModule = debugModule(module, runtime);
10− Elm.debuggerInit = function() {
11− Elm.Debugger = debuggerInit(wrappedModule, runtime);
10+ Elm.Debugger = debuggerInit(wrappedModule, runtime);
13 return wrappedModule.moduleInstance;
11 return wrappedModule.moduleInstance;
@@ -98,10 +96,9 @@ function debugModule(module, runtime) {
99function debuggerInit(debugModule, runtime) {
97function debuggerInit(debugModule, runtime) {
100 var Signal = Elm.Signal.make(runtime);
98 var Signal = Elm.Signal.make(runtime);
101− var graphicsNode = debugModule.moduleInstance.main.kids[0];
103 var tracePath = tracePathInit(runtime);
100 var tracePath = tracePathInit(runtime);
104− var tracePathNode = A2(Signal.lift, tracePath.graphicsUpdate, graphicsNode);
101+ var tracePathNode = A2(Signal.lift, tracePath.graphicsUpdate, debugModule.moduleInstance.main);
105 runtime.node.parentNode.appendChild(tracePath.canvas);
102 runtime.node.parentNode.appendChild(tracePath.canvas);
107 function resetProgram() {
104 function resetProgram() {
@@ -160,6 +157,7 @@ function debuggerInit(debugModule, runtime) {
162 function redrawGraphics() {
159 function redrawGraphics() {
160+ var graphicsNode = debugModule.moduleInstance.main.kids[0];
163 graphicsNode.recv(Date.now(), true, debugModule.moduleInstance.main.id);
161 graphicsNode.recv(Date.now(), true, debugModule.moduleInstance.main.id);