]> git.sesse.net Git - remoteglot/commitdiff
Pack remoteglot.js into an anonymous function for better scoping.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 20 Nov 2013 21:36:51 +0000 (22:36 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 20 Nov 2013 21:36:51 +0000 (22:36 +0100)
www/js/remoteglot.js

index bff7a846bb5cbb724ab29d35857e7079c1e566c4..9a2b5fda422e59d35799f4aff7596e685c9fd84c 100644 (file)
@@ -1,3 +1,5 @@
+(function() {
+
 var board = [];
 var arrows = [];
 var arrow_targets = [];
 var board = [];
 var arrows = [];
 var arrow_targets = [];
@@ -443,3 +445,5 @@ var init = function() {
        });
 };
 $(document).ready(init);
        });
 };
 $(document).ready(init);
+
+})();