From: Steinar H. Gunderson Date: Wed, 20 Nov 2013 21:36:51 +0000 (+0100) Subject: Pack remoteglot.js into an anonymous function for better scoping. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=ae8b820b96ab4e5a4b2551157f23724b3702c891;ds=sidebyside Pack remoteglot.js into an anonymous function for better scoping. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index bff7a84..9a2b5fd 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1,3 +1,5 @@ +(function() { + var board = []; var arrows = []; var arrow_targets = []; @@ -443,3 +445,5 @@ var init = function() { }); }; $(document).ready(init); + +})();