From: Wolfram Schneider Date: Tue, 25 Jun 2013 14:00:22 +0000 (+0000) Subject: use typeof to check if a parameter is set X-Git-Tag: 0.9.1~527 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=235260b9ff89a63bdc951f53123b2bca6dbb18ea;p=mkws-moved-to-github.git use typeof to check if a parameter is set --- diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 6f20290..e3e5fe5 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -13,7 +13,7 @@ if (!mkws_config) var mkws_config = {}; // for the guys who forgot to define mkws_config... -if (mkws_config.use_service_proxy === 'undefined') +if (typeof mkws_config.use_service_proxy === 'undefined') mkws_config.use_service_proxy = true; var mkws_debug = 1;