Permalink
Browse files

More jshint, variable shadowing

  • Loading branch information...
1 parent 25c2bc2 commit 684e217f958d2b9e5ac35466d1d63e9c91d62ee4 @bergie committed Sep 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/service/DBPediaService.js
View
6 src/service/DBPediaService.js
@@ -119,9 +119,9 @@ VIE.prototype.DBPediaService.prototype = {
try {
var entities = VIE.Util.rdf2Entities(service, results);
entities = (_.isArray(entities))? entities : [ entities ];
- for (var e = 0; e < entities.length; e++) {
- entities[e].set("DBPediaServiceLoad", VIE.Util.xsdDateTime(new Date()));
- }
+ _.each(entities, function (entity) {
+ entity.set("DBPediaServiceLoad", VIE.Util.xsdDateTime(new Date()));
+ });
entities = (entities.length === 1)? entities[0] : entities;
loadable.resolve(entities);
} catch (e) {

0 comments on commit 684e217

Please sign in to comment.