{"action":"created","issue":{"url":"https://api.github.com/repos/zotero/translators/issues/907","labels_url":"https://api.github.com/repos/zotero/translators/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/zotero/translators/issues/907/comments","events_url":"https://api.github.com/repos/zotero/translators/issues/907/events","html_url":"https://github.com/zotero/translators/pull/907","id":90198591,"number":907,"title":"[Zotero RDF]: Replace (deprecated) for each loops","user":{"login":"zuphilip","id":5199995,"avatar_url":"https://avatars.githubusercontent.com/u/5199995?v=3","gravatar_id":"","url":"https://api.github.com/users/zuphilip","html_url":"https://github.com/zuphilip","followers_url":"https://api.github.com/users/zuphilip/followers","following_url":"https://api.github.com/users/zuphilip/following{/other_user}","gists_url":"https://api.github.com/users/zuphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/zuphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuphilip/subscriptions","organizations_url":"https://api.github.com/users/zuphilip/orgs","repos_url":"https://api.github.com/users/zuphilip/repos","events_url":"https://api.github.com/users/zuphilip/events{/privacy}","received_events_url":"https://api.github.com/users/zuphilip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T20:09:52Z","updated_at":"2015-06-22T20:21:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zotero/translators/pulls/907","html_url":"https://github.com/zotero/translators/pull/907","diff_url":"https://github.com/zotero/translators/pull/907.diff","patch_url":"https://github.com/zotero/translators/pull/907.patch"},"body":"Actually, all for each loops were with arrays:\r\n * tags in generateTags() are coming from item.tags which is an array\r\n * collection.children in generateCollection() is a Zotero.Collection().children which is an array\r\n * item.creators is an array\r\n * participants is an array\r\n * item.attachments is an array\r\n * items is an array\r\n\r\nThus, is possible to replace all these loops with simple `for` loops."},"comment":{"url":"https://api.github.com/repos/zotero/translators/issues/comments/114250992","html_url":"https://github.com/zotero/translators/pull/907#issuecomment-114250992","issue_url":"https://api.github.com/repos/zotero/translators/issues/907","id":114250992,"user":{"login":"aurimasv","id":1381759,"avatar_url":"https://avatars.githubusercontent.com/u/1381759?v=3","gravatar_id":"","url":"https://api.github.com/users/aurimasv","html_url":"https://github.com/aurimasv","followers_url":"https://api.github.com/users/aurimasv/followers","following_url":"https://api.github.com/users/aurimasv/following{/other_user}","gists_url":"https://api.github.com/users/aurimasv/gists{/gist_id}","starred_url":"https://api.github.com/users/aurimasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurimasv/subscriptions","organizations_url":"https://api.github.com/users/aurimasv/orgs","repos_url":"https://api.github.com/users/aurimasv/repos","events_url":"https://api.github.com/users/aurimasv/events{/privacy}","received_events_url":"https://api.github.com/users/aurimasv/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T20:21:50Z","updated_at":"2015-06-22T20:21:50Z","body":"Oh, oops. Thought this was RDF.js. OK, nvm then, but do make sure that you can export some items from Zotero."}}