Fixes the "make phantomjs" Jenkins error:
Strict mode forbids implicit creation of global property 'mkws_jQuery'
Note: not yet tested as part of installation (which we need so we can
check that Seb's widgets embedded in the blog still work). I am
pushing so that I can onto the live site and verify that. If there's a
problem there, I'll revert and try again.
};
// We may be using a separate copy
-if (typeof(mkws_jQuery) === "undefined") mkws_jQuery = jQuery;
-mkws.$ = mkws_jQuery;
+if (typeof(mkws_jQuery) !== "undefined") {
+ mkws.$ = mkws_jQuery;
+} else {
+ mkws.$ = jQuery;
+}
mkws.log = function(string) {
if (!mkws.log_level)
var widgetSelector = selectorForAllWidgets();
if (widgetSelector && $(widgetSelector).length !== 0) init();
});
-})(mkws_jQuery);
+})(mkws.$);