{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/iron-ajax/issues/40","labels_url":"https://api.github.com/repos/PolymerElements/iron-ajax/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/iron-ajax/issues/40/comments","events_url":"https://api.github.com/repos/PolymerElements/iron-ajax/issues/40/events","html_url":"https://github.com/PolymerElements/iron-ajax/issues/40","id":84176927,"number":40,"title":"Potential bug with activeRequests list and discardRequest","user":{"login":"zikes","id":410905,"avatar_url":"https://avatars.githubusercontent.com/u/410905?v=3","gravatar_id":"","url":"https://api.github.com/users/zikes","html_url":"https://github.com/zikes","followers_url":"https://api.github.com/users/zikes/followers","following_url":"https://api.github.com/users/zikes/following{/other_user}","gists_url":"https://api.github.com/users/zikes/gists{/gist_id}","starred_url":"https://api.github.com/users/zikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zikes/subscriptions","organizations_url":"https://api.github.com/users/zikes/orgs","repos_url":"https://api.github.com/users/zikes/repos","events_url":"https://api.github.com/users/zikes/events{/privacy}","received_events_url":"https://api.github.com/users/zikes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-02T19:41:23Z","updated_at":"2015-06-04T16:09:10Z","closed_at":null,"body":"https://github.com/PolymerElements/iron-ajax/blob/master/iron-ajax.html#L393\r\n\r\nThe comparison in `discardRequest` checks that the index is greater than zero, however `indexOf` may return zero if the searched-for request is the first element in the array.  This means the first request would not be discarded.  This comparison most likely should be `requestIndex >= 0`."},"comment":{"url":"https://api.github.com/repos/PolymerElements/iron-ajax/issues/comments/108951609","html_url":"https://github.com/PolymerElements/iron-ajax/issues/40#issuecomment-108951609","issue_url":"https://api.github.com/repos/PolymerElements/iron-ajax/issues/40","id":108951609,"user":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T16:09:10Z","updated_at":"2015-06-04T16:09:10Z","body":"Thanks for reporting. This looks like a bug."}}