Make sure to declare javascript variable so it's not global
Make sure to declare javascript variable so it's not global

--- a/js/tooltips.js
+++ b/js/tooltips.js
@@ -16,7 +16,7 @@
 
 		var content = '<div>' + GITPHP_RES_SNAPSHOT + ': ';
 		var first = true;
-		for (type in GITPHP_SNAPSHOT_FORMATS) {
+		for (var type in GITPHP_SNAPSHOT_FORMATS) {
 			if (!first) {
 				content += ' | ';
 			}

comments