image_annotation/commit
FIXED: sloppy implicit variable declaration caused annotations in FF to start at origin iso mouseclick. Reported by Chris Dijkshoorn
author | Jacco van Ossenbruggen |
---|---|
Tue Jun 16 11:58:14 2015 +0200 | |
committer | Jacco van Ossenbruggen |
Tue Jun 16 11:58:14 2015 +0200 | |
commit | cb353a8f5f47343b703f13c81eb0421194713aec |
tree | de958084f17b21384fd20e1a0348dd6344df87c6 |
parent | 480563959f0442c828c8ed764a2b79808bf52d2b |
Diff style: patch stat
diff --git a/web/js/deniche-plugin.js b/web/js/deniche-plugin.js index f871a24..5ca9343 100644 --- a/web/js/deniche-plugin.js +++ b/web/js/deniche-plugin.js @@ -63,9 +63,9 @@ annotorious.plugin.DenichePlugin.prototype.onInitAnnotator = function(annotator) this.installHandlers(); if (this._anno.fields) { - fields = this._anno.fields[imageId][fieldsId]; - for(i in fields) { - f = fields[i]; + var fields = this._anno.fields[imageId][fieldsId]; + for(var i in fields) { + var f = fields[i]; if (f.get('lazy')) f.getTags(); } }