From: Mike Taylor Date: Wed, 3 Jun 2015 16:26:18 +0000 (+0100) Subject: Part of ACREP-35, and surely the last part? X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=0fac5e7e2cb7209262b8f312bb2046dad2304036;p=mkws-moved-to-github.git Part of ACREP-35, and surely the last part? Establish local $ as a copy of mkws.$. This is not necessary when running using a local copy of MKWS, when $ already has that value. But for reasons that I don't understand at all, $ is undefined when running the exact same code using a copy of MKWS from the production server. --- diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index 8b2b00f..b9004c9 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -7,6 +7,7 @@ mkws.registerWidgetType('categories', function() { }); req.get(null, function(data) { + var $ = mkws.$; if (!$.isXMLDoc(data)) { alert("categories response document is not XML"); return;