From 59ef764d480f4538cea02f7adcc6edd57a203791 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 3 Jun 2015 17:26:18 +0100 Subject: [PATCH] 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. --- src/mkws-widget-categories.js | 1 + 1 file changed, 1 insertion(+) 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; -- 1.7.10.4