on master help sign in
Debugger: post message when notify is called so UI can update.
commit52547ccfb31259e2c90861723d6c3c482893a7f4 authorLaszlo Pandy <laszlo.pandy@prezi.com> dateTue 5 Nov 2013, 15:24 (13 years ago) parentb261585
1 file changed+5−1
runtime/Debugger.js+5−1
runtime/Debugger.js+5−1
@@ -39,6 +39,9 @@ function debugModule(module, runtime) {
3939 else {
4040 runtime.notify(id, v, timestep);
4141 recordEvent(id, v, timestep);
42+ if (parent.window) {
43+ parent.window.postMessage("elmNotify", window.location.origin);
44+ }
4245 }
4346 };
4447
@@ -201,7 +204,8 @@ function debuggerInit(debugModule, runtime) {
201204 pause: pauseProgram,
202205 kontinue: continueProgram,
203206 getMaxSteps: getMaxSteps,
204− stepTo: stepTo
207+ stepTo: stepTo,
208+ getPaused: debugModule.getPaused
205209 };
206210
207211 return elmDebugger;