on master help sign in
no need to post to the window since no one should be listening anymore
commitccce6cc640cf94a895d343567b7eb493e3af1f2b authorMichael James <michael@michaelbjames.com> dateThu 14 Aug 2014, 12:37 (12 years ago) parent10c9620
1 file changed−15
runtime/Debugger.js−15
runtime/Debugger.js−15
@@ -20,7 +20,6 @@ function debuggerAttach(module, hotSwapState /* =undefined */) {
2020 make: function(runtime) {
2121 var wrappedModule = debugModule(module, runtime);
2222 exposedDebugger = debuggerInit(wrappedModule, runtime, hotSwapState);
23− dispatchElmDebuggerInit();
2423 return wrappedModule.debuggedModule;
2524 }
2625 };
@@ -28,20 +27,6 @@ function debuggerAttach(module, hotSwapState /* =undefined */) {
2827
2928var EVENTS_PER_SAVE = 100;
3029
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−
4530function debugModule(module, runtime) {
4631 var programPaused = false;
4732 var recordedEvents = [];