From 6bce7bdad808e1b2e5b64da14fee4f5f10d63c08 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 18 Mar 2014 09:49:55 +0000 Subject: [PATCH] improve javascript object check from last commit --- tools/htdocs/mkws-jquery.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/htdocs/mkws-jquery.js b/tools/htdocs/mkws-jquery.js index 11fa838..8e7102a 100644 --- a/tools/htdocs/mkws-jquery.js +++ b/tools/htdocs/mkws-jquery.js @@ -57,6 +57,9 @@ function _mkws_jquery_plugin ($) { // service-proxy or pazpar2 pazpar2: function(config) { + if (config == null || typeof config != 'object') { + config = {}; + } var id_popup = config.id_popup || "#mkwsPopup"; id_popup = id_popup.replace(/^#/, ""); -- 1.7.10.4