From 688b5f29b6d5a43c62e9bd3887e2c2e430b39940 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Sat, 12 Nov 2016 20:03:56 +0100 Subject: [PATCH] Cleanup. --- js/main.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/js/main.js b/js/main.js index 41eeba0e..0fc4a8aa 100644 --- a/js/main.js +++ b/js/main.js @@ -52,6 +52,8 @@ var MM = (function() { } } + updateWrapperStates(); + sendNotification("DOM_OBJECTS_CREATED"); }; @@ -274,17 +276,11 @@ var MM = (function() { var showWrapper = false; Array.prototype.forEach.call(moduleWrappers, function(moduleWrapper) { - if (moduleWrapper.style.position == "static" || moduleWrapper.style.position == "") { + if (moduleWrapper.style.position == "" || moduleWrapper.style.position == "static") { showWrapper = true; } }); - // if (showWrapper) { - // console.log('Hide wrapper: ' + position); - // } else { - // console.log('Show wrapper: ' + position); - // } - wrapper.style.display = showWrapper ? "block" : "none"; }); };