on master help sign in
Debugger: post message when notify is called so UI can update.
52547ccLaszlo Pandy
runtime/Debugger.js+5−1
@@ -39,6 +39,9 @@ function debugModule(module, runtime) {
39 else {
39 else {
40 runtime.notify(id, v, timestep);
40 runtime.notify(id, v, timestep);
41 recordEvent(id, v, timestep);
41 recordEvent(id, v, timestep);
42+ if (parent.window) {
43+ parent.window.postMessage("elmNotify", window.location.origin);
44+ }
42 }
45 }
43 };
46 };
44
47
@@ -201,7 +204,8 @@ function debuggerInit(debugModule, runtime) {
201 pause: pauseProgram,
204 pause: pauseProgram,
202 kontinue: continueProgram,
205 kontinue: continueProgram,
203 getMaxSteps: getMaxSteps,
206 getMaxSteps: getMaxSteps,
204− stepTo: stepTo
207+ stepTo: stepTo,
208+ getPaused: debugModule.getPaused
205 };
209 };
206
210
207 return elmDebugger;
211 return elmDebugger;