on master help sign in
no need to post to the window since no one should be listening anymore
ccce6ccMichael James
runtime/Debugger.js−15
@@ -20,7 +20,6 @@ function debuggerAttach(module, hotSwapState /* =undefined */) {
20 make: function(runtime) {
20 make: function(runtime) {
21 var wrappedModule = debugModule(module, runtime);
21 var wrappedModule = debugModule(module, runtime);
22 exposedDebugger = debuggerInit(wrappedModule, runtime, hotSwapState);
22 exposedDebugger = debuggerInit(wrappedModule, runtime, hotSwapState);
23− dispatchElmDebuggerInit();
24 return wrappedModule.debuggedModule;
23 return wrappedModule.debuggedModule;
25 }
24 }
26 };
25 };
@@ -28,20 +27,6 @@ function debuggerAttach(module, hotSwapState /* =undefined */) {
28
27
29var EVENTS_PER_SAVE = 100;
28var EVENTS_PER_SAVE = 100;
30
29
31−function dispatchElmDebuggerInit() {
32− if (parent.window) {
33− var dispatch = function() {
34− parent.window.postMessage("elmDebuggerInit", window.location.origin);
35− };
36− if (parent.window.document.readyState === "complete") {
37− dispatch();
38− }
39− else {
40− parent.window.addEventListener("load", dispatch);
41− }
42− }
43−}
44−
45function debugModule(module, runtime) {
30function debugModule(module, runtime) {
46 var programPaused = false;
31 var programPaused = false;
47 var recordedEvents = [];
32 var recordedEvents = [];