From f320f6e9b633f96b7ceac98f1482c83b256659c2 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Fri, 1 Apr 2016 10:44:17 +0200 Subject: [PATCH] Fix show/hide issue on content update. --- js/main.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index da5896ac..cf81ca3f 100644 --- a/js/main.js +++ b/js/main.js @@ -422,10 +422,8 @@ var MM = (function() { * argument callback function - Called when the animation is done. */ hideModule: function(module, speed, callback) { - hideModule(module, speed, function() { - module.hidden = true; - if (typeof callback === 'function') { callback(); } - }); + module.hidden = true; + hideModule(module, speed, callback); }, /* showModule(module, speed, callback)