From 990e2a4386bd9c5e206152034ccf1d2e5a29e331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Jun 2025 19:27:20 +0200 Subject: [PATCH] Platform: random comment whitespace fixes. --- src/Magnum/Platform/EmscriptenApplication.js | 6 ++++-- src/Magnum/Platform/Platform.js.in | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Platform/EmscriptenApplication.js b/src/Magnum/Platform/EmscriptenApplication.js index 627b2fe9e..3218b39ab 100644 --- a/src/Magnum/Platform/EmscriptenApplication.js +++ b/src/Magnum/Platform/EmscriptenApplication.js @@ -59,7 +59,8 @@ function createMagnumModule(init) { setStatus: function(message) { /* Emscripten calls setStatus("") after a timeout even if the app - aborts. That would erase the crash message, so don't allow that */ + aborts. That would erase the crash message, so don't allow + that. */ if(module.status && module.status.innerHTML != "Oops :(") module.status.innerHTML = message; }, @@ -101,7 +102,8 @@ function createMagnumModule(init) { /* Let the user-supplied object overwrite all the above */ Object.assign(module, init); - /* We can do this here because at this point `module.status` should be correct */ + /* We can do this here because at this point `module.status` should be + correct */ module.setStatus("Downloading..."); return module; diff --git a/src/Magnum/Platform/Platform.js.in b/src/Magnum/Platform/Platform.js.in index 736713b64..e77a4223c 100644 --- a/src/Magnum/Platform/Platform.js.in +++ b/src/Magnum/Platform/Platform.js.in @@ -26,7 +26,7 @@ /* JavaScript called by C++ code in EmscriptenApplication and Sdl2Application. Doing it this way instead of having it inline with EM_ASM(), because this - provides an actually usable way of expressing dependencies. With EM_ASM() + provides an actually usable way of expressing dependencies. With EM_ASM() one would instead have to pass -s EXPORTED_FUNCTIONS=[...] to the linker, and OF COURSE there still isn't a way to combine multiple of @@ -141,7 +141,6 @@ mergeInto(LibraryManager.library, { }; window.requestAnimationFrame(drawEvent); }, - }); // kate: hl javascript