{"action":"created","issue":{"url":"https://api.github.com/repos/probmods/webppl/issues/39","labels_url":"https://api.github.com/repos/probmods/webppl/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/probmods/webppl/issues/39/comments","events_url":"https://api.github.com/repos/probmods/webppl/issues/39/events","html_url":"https://github.com/probmods/webppl/issues/39","id":55350441,"number":39,"title":"Go through codeclimate issues, fix where sensible","user":{"login":"stuhlmueller","id":382515,"avatar_url":"https://avatars.githubusercontent.com/u/382515?v=3","gravatar_id":"","url":"https://api.github.com/users/stuhlmueller","html_url":"https://github.com/stuhlmueller","followers_url":"https://api.github.com/users/stuhlmueller/followers","following_url":"https://api.github.com/users/stuhlmueller/following{/other_user}","gists_url":"https://api.github.com/users/stuhlmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/stuhlmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuhlmueller/subscriptions","organizations_url":"https://api.github.com/users/stuhlmueller/orgs","repos_url":"https://api.github.com/users/stuhlmueller/repos","events_url":"https://api.github.com/users/stuhlmueller/events{/privacy}","received_events_url":"https://api.github.com/users/stuhlmueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pedir","id":7097449,"avatar_url":"https://avatars.githubusercontent.com/u/7097449?v=3","gravatar_id":"","url":"https://api.github.com/users/pedir","html_url":"https://github.com/pedir","followers_url":"https://api.github.com/users/pedir/followers","following_url":"https://api.github.com/users/pedir/following{/other_user}","gists_url":"https://api.github.com/users/pedir/gists{/gist_id}","starred_url":"https://api.github.com/users/pedir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedir/subscriptions","organizations_url":"https://api.github.com/users/pedir/orgs","repos_url":"https://api.github.com/users/pedir/repos","events_url":"https://api.github.com/users/pedir/events{/privacy}","received_events_url":"https://api.github.com/users/pedir/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-24T00:26:58Z","updated_at":"2015-01-24T01:22:01Z","closed_at":null,"body":"https://codeclimate.com/github/probmods/webppl/code"},"comment":{"url":"https://api.github.com/repos/probmods/webppl/issues/comments/71293396","html_url":"https://github.com/probmods/webppl/issues/39#issuecomment-71293396","issue_url":"https://api.github.com/repos/probmods/webppl/issues/39","id":71293396,"user":{"login":"stuhlmueller","id":382515,"avatar_url":"https://avatars.githubusercontent.com/u/382515?v=3","gravatar_id":"","url":"https://api.github.com/users/stuhlmueller","html_url":"https://github.com/stuhlmueller","followers_url":"https://api.github.com/users/stuhlmueller/followers","following_url":"https://api.github.com/users/stuhlmueller/following{/other_user}","gists_url":"https://api.github.com/users/stuhlmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/stuhlmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuhlmueller/subscriptions","organizations_url":"https://api.github.com/users/stuhlmueller/orgs","repos_url":"https://api.github.com/users/stuhlmueller/repos","events_url":"https://api.github.com/users/stuhlmueller/events{/privacy}","received_events_url":"https://api.github.com/users/stuhlmueller/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T01:22:01Z","updated_at":"2015-01-24T01:22:01Z","body":"To fix this issue...\r\n\r\n> The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.\r\n\r\n...use\r\n\r\n    _.each(jsObject, function(val, key) {\r\n      ...\r\n    });\r\n\r\n...instead of...\r\n\r\n    for (var key in jsObject) {\r\n      if (jsObject.hasOwnProperty(key)) {\r\n        ...\r\n      }\r\n    }"}}