{"action":"created","issue":{"url":"https://api.github.com/repos/phetsims/rosetta/issues/85","labels_url":"https://api.github.com/repos/phetsims/rosetta/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/rosetta/issues/85/comments","events_url":"https://api.github.com/repos/phetsims/rosetta/issues/85/events","html_url":"https://github.com/phetsims/rosetta/issues/85","id":108970339,"number":85,"title":"odd-looking loop construct","user":{"login":"jbphet","id":3082831,"avatar_url":"https://avatars.githubusercontent.com/u/3082831?v=3","gravatar_id":"","url":"https://api.github.com/users/jbphet","html_url":"https://github.com/jbphet","followers_url":"https://api.github.com/users/jbphet/followers","following_url":"https://api.github.com/users/jbphet/following{/other_user}","gists_url":"https://api.github.com/users/jbphet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbphet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbphet/subscriptions","organizations_url":"https://api.github.com/users/jbphet/orgs","repos_url":"https://api.github.com/users/jbphet/repos","events_url":"https://api.github.com/users/jbphet/events{/privacy}","received_events_url":"https://api.github.com/users/jbphet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phetsims/rosetta/labels/code-review","name":"code-review","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"jbphet","id":3082831,"avatar_url":"https://avatars.githubusercontent.com/u/3082831?v=3","gravatar_id":"","url":"https://api.github.com/users/jbphet","html_url":"https://github.com/jbphet","followers_url":"https://api.github.com/users/jbphet/followers","following_url":"https://api.github.com/users/jbphet/following{/other_user}","gists_url":"https://api.github.com/users/jbphet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbphet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbphet/subscriptions","organizations_url":"https://api.github.com/users/jbphet/orgs","repos_url":"https://api.github.com/users/jbphet/repos","events_url":"https://api.github.com/users/jbphet/events{/privacy}","received_events_url":"https://api.github.com/users/jbphet/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-29T22:10:17Z","updated_at":"2015-10-06T20:19:18Z","closed_at":"2015-10-06T20:19:18Z","body":"I'm seeing the following code in routes.js:\r\n\r\n```js\r\n      for ( i = 0; i < extractedStrings.length; i++ ) {\r\n        (function( i ) {\r\n          var projectName = extractedStrings[ i ].projectName;\r\n          var repoSha = ( projectName === simName ) ? simSha : 'master';\r\n         .\r\n         .\r\n         .\r\n        })( i );\r\n      }\r\n```\r\n\r\nI'm wondering why this is done rather than:\r\n\r\n```js\r\n      extractedStrings.forEach( function( extractedString, index ){\r\n         .\r\n         .\r\n         .\r\n      }\r\n\r\nThere may well be a good reason but, if so, please document."},"comment":{"url":"https://api.github.com/repos/phetsims/rosetta/issues/comments/145987288","html_url":"https://github.com/phetsims/rosetta/issues/85#issuecomment-145987288","issue_url":"https://api.github.com/repos/phetsims/rosetta/issues/85","id":145987288,"user":{"login":"jbphet","id":3082831,"avatar_url":"https://avatars.githubusercontent.com/u/3082831?v=3","gravatar_id":"","url":"https://api.github.com/users/jbphet","html_url":"https://github.com/jbphet","followers_url":"https://api.github.com/users/jbphet/followers","following_url":"https://api.github.com/users/jbphet/following{/other_user}","gists_url":"https://api.github.com/users/jbphet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbphet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbphet/subscriptions","organizations_url":"https://api.github.com/users/jbphet/orgs","repos_url":"https://api.github.com/users/jbphet/repos","events_url":"https://api.github.com/users/jbphet/events{/privacy}","received_events_url":"https://api.github.com/users/jbphet/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T20:19:18Z","updated_at":"2015-10-06T20:19:18Z","body":"Looks better, thanks.  Closing."}}