From d9ea1e26483a9f2a6ae9a441ec88937604a414cb Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 28 Mar 2014 11:32:12 +0000 Subject: [PATCH] Simplify. --- src/mkws-core.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index b5f29a3..9176115 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -117,12 +117,7 @@ mkws.promotionFunction = function(name) { mkws.defaultMkwsConfig = function() { - // Define empty mkws_config for simple applications that don't define it. - if (mkws_config == null || typeof mkws_config != 'object') { - var mkws_config = {}; - } - - mkws.config = mkws_config; + mkws.config = mkws_config || {}; /* default mkws config */ var config_default = { -- 1.7.10.4