don't not init mkws_debug, this will be done later by the widget app, MKWS-27
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 5 Jul 2013 14:28:42 +0000 (14:28 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 5 Jul 2013 14:28:42 +0000 (14:28 +0000)
This doesn't really make a difference, but the code gets more readable.

experiments/spclient/mkws.js

index 84bb074..f4e9646 100644 (file)
@@ -16,7 +16,8 @@ if (!mkws_config)
 if (typeof mkws_config.use_service_proxy === 'undefined')
     mkws_config.use_service_proxy = true;
 
-var mkws_debug = 1;
+// global debug flag
+var mkws_debug;
 
 var pazpar2_url = mkws_config.pazpar2_url ? mkws_config.pazpar2_url : "/pazpar2/search.pz2";
 var service_proxy_url = mkws_config.service_proxy_url ? mkws_config.service_proxy_url : "http://mkws.indexdata.com/service-proxy/";