{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1101","labels_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1101/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1101/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1101/events","html_url":"https://github.com/ReactiveX/RxJS/pull/1101","id":123140754,"number":1101,"title":"fix(fromEvent): added spread operator for events that emit more than one argument","user":{"login":"earlsioson","id":13466524,"avatar_url":"https://avatars.githubusercontent.com/u/13466524?v=3","gravatar_id":"","url":"https://api.github.com/users/earlsioson","html_url":"https://github.com/earlsioson","followers_url":"https://api.github.com/users/earlsioson/followers","following_url":"https://api.github.com/users/earlsioson/following{/other_user}","gists_url":"https://api.github.com/users/earlsioson/gists{/gist_id}","starred_url":"https://api.github.com/users/earlsioson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earlsioson/subscriptions","organizations_url":"https://api.github.com/users/earlsioson/orgs","repos_url":"https://api.github.com/users/earlsioson/repos","events_url":"https://api.github.com/users/earlsioson/events{/privacy}","received_events_url":"https://api.github.com/users/earlsioson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-20T07:30:56Z","updated_at":"2015-12-23T18:53:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ReactiveX/RxJS/pulls/1101","html_url":"https://github.com/ReactiveX/RxJS/pull/1101","diff_url":"https://github.com/ReactiveX/RxJS/pull/1101.diff","patch_url":"https://github.com/ReactiveX/RxJS/pull/1101.patch"},"body":"I added the spread operator to the first expression of the ternary operator, i.e. the condition when a selector is passed. I'm not sure if it makes sense to add it to the second expression. I also modified the spec to test for multiple arguments. "},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxJS/issues/comments/166969792","html_url":"https://github.com/ReactiveX/RxJS/pull/1101#issuecomment-166969792","issue_url":"https://api.github.com/repos/ReactiveX/RxJS/issues/1101","id":166969792,"user":{"login":"earlsioson","id":13466524,"avatar_url":"https://avatars.githubusercontent.com/u/13466524?v=3","gravatar_id":"","url":"https://api.github.com/users/earlsioson","html_url":"https://github.com/earlsioson","followers_url":"https://api.github.com/users/earlsioson/followers","following_url":"https://api.github.com/users/earlsioson/following{/other_user}","gists_url":"https://api.github.com/users/earlsioson/gists{/gist_id}","starred_url":"https://api.github.com/users/earlsioson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earlsioson/subscriptions","organizations_url":"https://api.github.com/users/earlsioson/orgs","repos_url":"https://api.github.com/users/earlsioson/repos","events_url":"https://api.github.com/users/earlsioson/events{/privacy}","received_events_url":"https://api.github.com/users/earlsioson/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T18:53:48Z","updated_at":"2015-12-23T18:53:48Z","body":"@kwonoj,\r\n\r\n>What does behavior difference when selector is not being passed between RxJS4 / RxJS5?\r\n\r\nfor the code below both RxJS4 and RxJS5 display x:baz\r\n\r\n```javascript\r\nvar EventEmitter = require('events').EventEmitter;\r\n//const Rx = require('@reactivex/rxjs'); //RxJS5\r\nconst Rx = require('rx'); //RxJS4\r\n\r\nvar eventEmitter = new EventEmitter();\r\n\r\nvar source = Rx.Observable.fromEvent(\r\n  eventEmitter,\r\n  'data');\r\n  \r\nvar subscription = source.subscribe(\r\n  function (x) {\r\n    console.log('x:' + x);\r\n  },\r\n  function (err) {\r\n    console.log('Error: ' + err);\r\n  },\r\n  function () {\r\n    console.log('Completed');\r\n  });\r\n\r\neventEmitter.emit('data', 'baz', 'hi');\r\n```"}}