From: Mike Taylor Date: Fri, 28 Mar 2014 11:32:12 +0000 (+0000) Subject: Simplify. X-Git-Tag: 1.0.0~1136 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d9ea1e26483a9f2a6ae9a441ec88937604a414cb;p=mkws-moved-to-github.git Simplify. --- 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 = {