partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit f3ea919074f672d7eb7110df3b68c7041a2663ae
parent b83b4c254e829fbdd0b306553fb263d202c062ac
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue, 27 Aug 2013 17:44:43 +0200

Fixed jslint warning where the counter variable "i" is redeclared

Diffstat:
Msrc/frontend/js/Components/Part/PartDisplay.js | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/frontend/js/Components/Part/PartDisplay.js b/src/frontend/js/Components/Part/PartDisplay.js @@ -139,7 +139,9 @@ Ext.define('PartKeepr.PartDisplay', { this.record = r; var values = {}; - for (var i in r.data) { + var i; + + for (i in r.data) { if (r.data[i] !== null) { values[i] = htmlentities(r.data[i]); } else { @@ -149,7 +151,7 @@ Ext.define('PartKeepr.PartDisplay', { values.processedAttachments = this.record.attachments().data; - for (var i=0;i<values.processedAttachments.getCount();i++) { + for (i=0;i<values.processedAttachments.getCount();i++) { var data = values.processedAttachments.getAt(i); data.link = "file.php?type=PartAttachment&id="+data.internalId;