on master help sign in
some spacing, comments, and unused parameter stye changes
1b5d457Michael James
runtime/Debugger.js+5−5
@@ -10,7 +10,7 @@ if (!window.location.origin) {
10}
10}
11
11
12Elm.Debugger = null;
12Elm.Debugger = null;
13−Elm.debuggerAttach = function(module, hotSwapState /* =undefined */) {
13+Elm.debuggerAttach = function(module, hotSwapState) {
14 return {
14 return {
15 make: function(runtime) {
15 make: function(runtime) {
16 var wrappedModule = debugModule(module, runtime);
16 var wrappedModule = debugModule(module, runtime);
@@ -23,7 +23,7 @@ Elm.debuggerAttach = function(module, hotSwapState /* =undefined */) {
23
23
24function dispatchElmDebuggerInit() {
24function dispatchElmDebuggerInit() {
25 if (parent.window) {
25 if (parent.window) {
26− var dispatch = function(_) {
26+ var dispatch = function() {
27 parent.window.postMessage("elmDebuggerInit", window.location.origin);
27 parent.window.postMessage("elmDebuggerInit", window.location.origin);
28 };
28 };
29 if (parent.window.document.readyState === "complete") {
29 if (parent.window.document.readyState === "complete") {
@@ -123,7 +123,7 @@ function debugModule(module, runtime) {
123 if (position > 0) {
123 if (position > 0) {
124 // If we're not unpausing at the head, then we need to dump the
124 // If we're not unpausing at the head, then we need to dump the
125 // events that are ahead of where we're continuing.
125 // events that are ahead of where we're continuing.
126− recordedEvents = recordedEvents.slice(0,position);
126+ recordedEvents = recordedEvents.slice(0, position);
127 executeCallbacks(asyncCallbacks, false);
127 executeCallbacks(asyncCallbacks, false);
128 }
128 }
129 tracePath.startRecording();
129 tracePath.startRecording();
@@ -177,7 +177,7 @@ function debugModule(module, runtime) {
177 };
177 };
178}
178}
179
179
180−function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
180+function debuggerInit(debugModule, runtime, hotSwapState) {
181 var currentEventIndex = 0;
181 var currentEventIndex = 0;
182
182
183 function resetProgram() {
183 function resetProgram() {
@@ -203,7 +203,7 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
203 function continueProgram() {
203 function continueProgram() {
204 if (debugModule.getPaused())
204 if (debugModule.getPaused())
205 {
205 {
206− if(currentEventIndex === 0) {
206+ if (currentEventIndex === 0) {
207 restartProgram();
207 restartProgram();
208 return;
208 return;
209 }
209 }