on master help sign in
Debugger: notify needs to return boolean.
commit02b02bd30808d1910d3819945d32db6fa745c477 authorLaszlo Pandy <laszlo.pandy@prezi.com> dateWed 6 Nov 2013, 12:51 (13 years ago) parent79c45a8
1 file changed+3−1
runtime/Debugger.js+3−1
runtime/Debugger.js+3−1
@@ -39,13 +39,15 @@ function debugModule(module, runtime) {
3939 if (programPaused) {
4040 // ignore async events generated while playing back
4141 // or user events while program is paused
42+ return false;
4243 }
4344 else {
44− runtime.notify(id, v, timestep);
45+ var changed = runtime.notify(id, v, timestep);
4546 recordEvent(id, v, timestep);
4647 if (parent.window) {
4748 parent.window.postMessage("elmNotify", window.location.origin);
4849 }
50+ return changed;
4951 }
5052 };
5153