{"action":"created","issue":{"url":"https://api.github.com/repos/reflux/reflux-promise/issues/5","labels_url":"https://api.github.com/repos/reflux/reflux-promise/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/reflux/reflux-promise/issues/5/comments","events_url":"https://api.github.com/repos/reflux/reflux-promise/issues/5/events","html_url":"https://github.com/reflux/reflux-promise/issues/5","id":111119914,"number":5,"title":"Using triggerPromise I only receive one argument in `.then`?","user":{"login":"spoike","id":9253,"avatar_url":"https://avatars.githubusercontent.com/u/9253?v=3","gravatar_id":"","url":"https://api.github.com/users/spoike","html_url":"https://github.com/spoike","followers_url":"https://api.github.com/users/spoike/followers","following_url":"https://api.github.com/users/spoike/following{/other_user}","gists_url":"https://api.github.com/users/spoike/gists{/gist_id}","starred_url":"https://api.github.com/users/spoike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spoike/subscriptions","organizations_url":"https://api.github.com/users/spoike/orgs","repos_url":"https://api.github.com/users/spoike/repos","events_url":"https://api.github.com/users/spoike/events{/privacy}","received_events_url":"https://api.github.com/users/spoike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-13T07:17:07Z","updated_at":"2015-10-13T11:58:04Z","closed_at":null,"body":"Reported by @ponelat in reflux/refluxjs#416\r\n\r\n> When I have a triggerPromise... I only receive the first argument in `then` clause.\r\n>\r\n>```javascript\r\nvar someAction = Reflux.createAction({asyncResult: true});\r\nsomeAction.listen(function(a,b,c) {\r\n  someAction.completed(a + '-eh', b + '-eh', c + '-eh')\r\n})\r\n>\r\n>someAction.triggerPromise(a,b,c)\r\n  .then(function(d,e,f) { // Assume d,e,f are passed into \r\n    console.log(d,e,f) // <- Only d is defined\r\n  })\r\n.catch(function() {})\r\n```\r\n>\r\n>I've looked into the source and I'm not sure why this is assumed to be an array of args?... https://github.com/reflux/reflux-core/blob/master/src/PublisherMethods.js#L159\r\n>\r\n>Could be a bug, or it might be me. I can PR if I get some time, but otherwise help is always appreciated!"},"comment":{"url":"https://api.github.com/repos/reflux/reflux-promise/issues/comments/147694345","html_url":"https://github.com/reflux/reflux-promise/issues/5#issuecomment-147694345","issue_url":"https://api.github.com/repos/reflux/reflux-promise/issues/5","id":147694345,"user":{"login":"DerNivel","id":9491603,"avatar_url":"https://avatars.githubusercontent.com/u/9491603?v=3","gravatar_id":"","url":"https://api.github.com/users/DerNivel","html_url":"https://github.com/DerNivel","followers_url":"https://api.github.com/users/DerNivel/followers","following_url":"https://api.github.com/users/DerNivel/following{/other_user}","gists_url":"https://api.github.com/users/DerNivel/gists{/gist_id}","starred_url":"https://api.github.com/users/DerNivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DerNivel/subscriptions","organizations_url":"https://api.github.com/users/DerNivel/orgs","repos_url":"https://api.github.com/users/DerNivel/repos","events_url":"https://api.github.com/users/DerNivel/events{/privacy}","received_events_url":"https://api.github.com/users/DerNivel/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T11:58:04Z","updated_at":"2015-10-13T11:58:04Z","body":"#7 fixes this issue "}}