image_annotation/commit
FIXED: some more potentially dangerous implicit for loop variables
author | Jacco van Ossenbruggen |
---|---|
Wed Jun 17 13:07:16 2015 +0200 | |
committer | Jacco van Ossenbruggen |
Wed Jun 17 13:07:16 2015 +0200 | |
commit | e662fc21bdbce72f3691a86c916e92478e2cee2b |
tree | d5cc9e23d6b3395e3398d7468633b06319064170 |
parent | faf67ed4e6c7c09853356f46e03252356a21d811 |
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; }