{"action":"closed","issue":{"url":"https://api.github.com/repos/krisk/Fuse/issues/66","labels_url":"https://api.github.com/repos/krisk/Fuse/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/krisk/Fuse/issues/66/comments","events_url":"https://api.github.com/repos/krisk/Fuse/issues/66/events","html_url":"https://github.com/krisk/Fuse/issues/66","id":117459248,"number":66,"title":"Variable conflict when using optional includes","user":{"login":"eponym","id":1326500,"avatar_url":"https://avatars.githubusercontent.com/u/1326500?v=3","gravatar_id":"","url":"https://api.github.com/users/eponym","html_url":"https://github.com/eponym","followers_url":"https://api.github.com/users/eponym/followers","following_url":"https://api.github.com/users/eponym/following{/other_user}","gists_url":"https://api.github.com/users/eponym/gists{/gist_id}","starred_url":"https://api.github.com/users/eponym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eponym/subscriptions","organizations_url":"https://api.github.com/users/eponym/orgs","repos_url":"https://api.github.com/users/eponym/repos","events_url":"https://api.github.com/users/eponym/events{/privacy}","received_events_url":"https://api.github.com/users/eponym/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T21:50:40Z","updated_at":"2015-11-29T16:14:53Z","closed_at":"2015-11-29T16:14:53Z","body":"There is a conflict with the variable i in getItem().\r\n\r\nIt's using i to loop through the include array.\r\n\r\n`for(var i = 0; i < options.include.length; i++)`\r\n\r\nHowever this conflicts with the i in getItem(), so when the loop sets the property:\r\n\r\n`rawResults[i][includeVal]`\r\n\r\nIt will reference the wrong array element and also cause an error if the include length is longer than the raw results."}}