From: Mike Taylor Date: Thu, 27 Mar 2014 15:48:30 +0000 (+0000) Subject: Remove unnecessary duplicate test. X-Git-Tag: 1.0.0~1149 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=6784f0d33ccee36d240aa8b42f57d7cd7aae9ea8;p=mkws-moved-to-github.git Remove unnecessary duplicate test. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index c49dc21..7a796b3 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -249,12 +249,6 @@ mkws.promotionFunction = function(name) { mkws.log_level = config_default.log_level; } - // make sure the mkws_config is a valid hash - if (!$.isPlainObject(mkws_config)) { - log("ERROR: mkws_config is not an JS object, ignore it...."); - mkws_config = {}; - } - /* override standard config values by function parameters */ for (var k in config_default) { if (typeof mkws_config[k] === 'undefined')