From: Jason Skomorowski Date: Tue, 29 Jul 2014 13:16:37 +0000 (-0400) Subject: Make mkws object actually global. MKWS-249 X-Git-Tag: 1.0.0~369^2~13^2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=199b8fb6fda2e04732bbf97b46cf8577b5e6895c;p=mkws-moved-to-github.git Make mkws object actually global. MKWS-249 --- diff --git a/src/mkws-core.js b/src/mkws-core.js index f09bf16..04accc8 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -9,7 +9,9 @@ // Set up global mkws object. Contains truly global state such as SP // authentication, and a hash of team objects, indexed by team-name. // -var mkws = { +// We set it as a property of window to make the global explicit as +// some things complain about an implicit global. +window.mkws = { $: $, // Our own local copy of the jQuery object authenticated: false, log_level: 1, // Will be overridden from mkws.config, but