{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/571","labels_url":"https://api.github.com/repos/postcss/autoprefixer/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/postcss/autoprefixer/issues/571/comments","events_url":"https://api.github.com/repos/postcss/autoprefixer/issues/571/events","html_url":"https://github.com/postcss/autoprefixer/issues/571","id":119475772,"number":571,"title":"Bug in gradient.coffee, array out bounds","user":{"login":"lexich","id":859946,"avatar_url":"https://avatars.githubusercontent.com/u/859946?v=3","gravatar_id":"","url":"https://api.github.com/users/lexich","html_url":"https://github.com/lexich","followers_url":"https://api.github.com/users/lexich/followers","following_url":"https://api.github.com/users/lexich/following{/other_user}","gists_url":"https://api.github.com/users/lexich/gists{/gist_id}","starred_url":"https://api.github.com/users/lexich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexich/subscriptions","organizations_url":"https://api.github.com/users/lexich/orgs","repos_url":"https://api.github.com/users/lexich/repos","events_url":"https://api.github.com/users/lexich/events{/privacy}","received_events_url":"https://api.github.com/users/lexich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-30T11:43:04Z","updated_at":"2015-11-30T13:29:31Z","closed_at":"2015-11-30T13:29:30Z","body":"https://github.com/postcss/autoprefixer/blob/master/lib/hacks/gradient.coffee#L78\r\n```coffee\r\n# Replace `to top left` to `bottom right`\r\n  fixDirection: (params) ->\r\n    params.splice(0, 2)\r\n    for i in [0..params.length - 1]  #!!!!!FIX\r\n      if params[i].type == 'div'\r\n        break\r\n      if params[i].type == 'word'\r\n        params[i].value = @revertDirection(params[i].value)\r\n```\r\n\r\nhttp://coffeescript.org/#try:params%20%3D%20%5B1%2C2%2C3%5D%0Afor%20i%20in%20%5B0..params.length%5D%0A%20%20console.log(%22PRINT%22%2C%20params%5Bi%5D)\r\n\r\nOutput:\r\n```\r\nPRINT 1\r\nPRINT 2\r\nPRINT 3\r\nPRINT undefined\r\n```"},"comment":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/comments/160626817","html_url":"https://github.com/postcss/autoprefixer/issues/571#issuecomment-160626817","issue_url":"https://api.github.com/repos/postcss/autoprefixer/issues/571","id":160626817,"user":{"login":"lexich","id":859946,"avatar_url":"https://avatars.githubusercontent.com/u/859946?v=3","gravatar_id":"","url":"https://api.github.com/users/lexich","html_url":"https://github.com/lexich","followers_url":"https://api.github.com/users/lexich/followers","following_url":"https://api.github.com/users/lexich/following{/other_user}","gists_url":"https://api.github.com/users/lexich/gists{/gist_id}","starred_url":"https://api.github.com/users/lexich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexich/subscriptions","organizations_url":"https://api.github.com/users/lexich/orgs","repos_url":"https://api.github.com/users/lexich/repos","events_url":"https://api.github.com/users/lexich/events{/privacy}","received_events_url":"https://api.github.com/users/lexich/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T13:29:30Z","updated_at":"2015-11-30T13:29:30Z","body":"Continue in #572 "}}