{"action":"closed","issue":{"url":"https://api.github.com/repos/qzind/tray/issues/67","repository_url":"https://api.github.com/repos/qzind/tray","labels_url":"https://api.github.com/repos/qzind/tray/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/qzind/tray/issues/67/comments","events_url":"https://api.github.com/repos/qzind/tray/issues/67/events","html_url":"https://github.com/qzind/tray/issues/67","id":159170285,"number":67,"title":"Ionic/AngularJS Array.prototype","user":{"login":"tresf","id":6345473,"avatar_url":"https://avatars.githubusercontent.com/u/6345473?v=3","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-08T13:58:10Z","updated_at":"2016-08-12T22:42:53Z","closed_at":"2016-08-12T22:42:53Z","body":"From the mailing list... \r\n\r\n---\r\n\r\nwith this line of code active\r\n\r\n```js\r\nvar pjson = Array.prototype.toJSON;\r\ndelete Array.prototype.toJSON;\r\n// ...\r\nArray.prototype.toJSON = pjson;\r\n```\r\n\r\neach time this is used\r\n```js\r\nvar someArr = [1,2,3,4];\r\nfor(var i in someArr){\r\n   console.log(someArr[i]);\r\n}\r\n// output: 1,2,3,4,undefined,undefined\r\n```\r\nthe for-loop will output some additional undefined value, but if i comment those lines it will output the correct index value of the array which are 1,2,3,4\r\n\r\ni use ionic-framework on chrome."}}
{"actor":{"display_login":"tresf"}}