image_annotation/commit

FIXED: some more potentially dangerous implicit for loop variables

authorJacco van Ossenbruggen
Wed Jun 17 13:07:16 2015 +0200
committerJacco van Ossenbruggen
Wed Jun 17 13:07:16 2015 +0200
commite662fc21bdbce72f3691a86c916e92478e2cee2b
treed5cc9e23d6b3395e3398d7468633b06319064170
parentfaf67ed4e6c7c09853356f46e03252356a21d811
Diff style: patch stat
diff --git a/web/js/annotation.js b/web/js/annotation.js
index 0fd3381..652ef28 100644
--- a/web/js/annotation.js
+++ b/web/js/annotation.js
@@ -541,9 +541,9 @@ YUI.add('annotation', function(Y) {
 
 		findMetaTagByAnnotation : function(an) {
 		     var mymeta = this.get('myMetaTags');
-		     for (target in mymeta) {
+		     for (var target in mymeta) {
 		       tlist = mymeta[target];
-		       for (type in tlist) {
+		       for (var type in tlist) {
 			 a = tlist[type];
 			 if (a.annotation == an) return a;
 		       }