projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f8d7d7
)
Reorder and clarify comments.
author
Mike Taylor
<mike@indexdata.com>
Tue, 12 Nov 2013 11:20:01 +0000
(11:20 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 12 Nov 2013 11:20:01 +0000
(11:20 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
ff6a0b2
..
41ad849
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-6,18
+6,17
@@
// Set up namespace and some state.
var mkws = {};
// Set up namespace and some state.
var mkws = {};
-if (!mkws_config)
- var mkws_config = {}; // for the guys who forgot to define mkws_config...
-
-// Wrapper for jQuery
-(function ($) {
-
/*
* global config object: mkws_config
*
/*
* global config object: mkws_config
*
- * needs to be defined in the HTML header before
- * including this JS file
+ * Needs to be defined in the HTML header before including this JS file.
+ * Define empty mkws_config for simple applications that don't define it.
*/
*/
+if (!mkws_config)
+ var mkws_config = {};
+
+// Wrapper for jQuery
+(function ($) {
if (typeof mkws_config.use_service_proxy === 'undefined')
mkws_config.use_service_proxy = true;
if (typeof mkws_config.use_service_proxy === 'undefined')
mkws_config.use_service_proxy = true;