{"action":"closed","number":249,"pull_request":{"url":"https://api.github.com/repos/spoike/refluxjs/pulls/249","id":29408426,"html_url":"https://github.com/spoike/refluxjs/pull/249","diff_url":"https://github.com/spoike/refluxjs/pull/249.diff","patch_url":"https://github.com/spoike/refluxjs/pull/249.patch","issue_url":"https://api.github.com/repos/spoike/refluxjs/issues/249","number":249,"state":"closed","locked":false,"title":"Allow default params on createActions","user":{"login":"w33ble","id":404731,"avatar_url":"https://avatars.githubusercontent.com/u/404731?v=3","gravatar_id":"","url":"https://api.github.com/users/w33ble","html_url":"https://github.com/w33ble","followers_url":"https://api.github.com/users/w33ble/followers","following_url":"https://api.github.com/users/w33ble/following{/other_user}","gists_url":"https://api.github.com/users/w33ble/gists{/gist_id}","starred_url":"https://api.github.com/users/w33ble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w33ble/subscriptions","organizations_url":"https://api.github.com/users/w33ble/orgs","repos_url":"https://api.github.com/users/w33ble/repos","events_url":"https://api.github.com/users/w33ble/events{/privacy}","received_events_url":"https://api.github.com/users/w33ble/received_events","type":"User","site_admin":false},"body":"Closes #205 \r\n\r\nContrary to the suggested proposed solution in #205, this allows you to pass any attributes to use as defaults across all actions.\r\n\r\n```js\r\n// before\r\nvar actions = Reflux.createActions({\r\n  'action1': { asyncResult: true },\r\n  'action2': { asyncResult: true },\r\n  'action3': { asyncResult: true }\r\n})\r\n```\r\n\r\n```js\r\n// after\r\nvar actions = Reflux.createActions(['action1', 'action2', 'action3'], { asyncResult: true });\r\n```\r\n\r\n---\r\n\r\nAs shown in the tests, these are *default* options when using the object notation - this allows you to override the \"defaults\" via the object notation, like:\r\n\r\n```js\r\nvar actionNames = {'foo': {children: ['boo']}, 'bar': {children: ['baz']}, 'baz': {asyncResult: false}};\r\nvar actions = Reflux.createActions(actionNames, { asyncResult: true });\r\n```\r\n\r\nHere, `baz` has `asyncResult` of false, while `foo` and `bar` are true.","created_at":"2015-02-16T23:47:07Z","updated_at":"2015-05-07T21:51:05Z","closed_at":"2015-05-07T21:51:05Z","merged_at":null,"merge_commit_sha":"5eb83d69b4276c3e9879c34ffbfc70f7d4ffc5d7","assignee":null,"milestone":{"url":"https://api.github.com/repos/spoike/refluxjs/milestones/23","html_url":"https://github.com/spoike/refluxjs/milestones/0.2.8","labels_url":"https://api.github.com/repos/spoike/refluxjs/milestones/23/labels","id":1009684,"number":23,"title":"0.2.8","description":"","creator":{"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},"open_issues":6,"closed_issues":4,"state":"open","created_at":"2015-03-06T18:14:16Z","updated_at":"2015-05-07T21:51:05Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/spoike/refluxjs/pulls/249/commits","review_comments_url":"https://api.github.com/repos/spoike/refluxjs/pulls/249/comments","review_comment_url":"https://api.github.com/repos/spoike/refluxjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spoike/refluxjs/issues/249/comments","statuses_url":"https://api.github.com/repos/spoike/refluxjs/statuses/391e08c316c2cb5386412fc38ddd2cee75840a4c","head":{"label":"w33ble:actions-defaults","ref":"actions-defaults","sha":"391e08c316c2cb5386412fc38ddd2cee75840a4c","user":{"login":"w33ble","id":404731,"avatar_url":"https://avatars.githubusercontent.com/u/404731?v=3","gravatar_id":"","url":"https://api.github.com/users/w33ble","html_url":"https://github.com/w33ble","followers_url":"https://api.github.com/users/w33ble/followers","following_url":"https://api.github.com/users/w33ble/following{/other_user}","gists_url":"https://api.github.com/users/w33ble/gists{/gist_id}","starred_url":"https://api.github.com/users/w33ble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w33ble/subscriptions","organizations_url":"https://api.github.com/users/w33ble/orgs","repos_url":"https://api.github.com/users/w33ble/repos","events_url":"https://api.github.com/users/w33ble/events{/privacy}","received_events_url":"https://api.github.com/users/w33ble/received_events","type":"User","site_admin":false},"repo":{"id":30885270,"name":"refluxjs","full_name":"w33ble/refluxjs","owner":{"login":"w33ble","id":404731,"avatar_url":"https://avatars.githubusercontent.com/u/404731?v=3","gravatar_id":"","url":"https://api.github.com/users/w33ble","html_url":"https://github.com/w33ble","followers_url":"https://api.github.com/users/w33ble/followers","following_url":"https://api.github.com/users/w33ble/following{/other_user}","gists_url":"https://api.github.com/users/w33ble/gists{/gist_id}","starred_url":"https://api.github.com/users/w33ble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w33ble/subscriptions","organizations_url":"https://api.github.com/users/w33ble/orgs","repos_url":"https://api.github.com/users/w33ble/repos","events_url":"https://api.github.com/users/w33ble/events{/privacy}","received_events_url":"https://api.github.com/users/w33ble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/w33ble/refluxjs","description":"A simple library for uni-directional dataflow application architecture inspired by ReactJS Flux","fork":true,"url":"https://api.github.com/repos/w33ble/refluxjs","forks_url":"https://api.github.com/repos/w33ble/refluxjs/forks","keys_url":"https://api.github.com/repos/w33ble/refluxjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w33ble/refluxjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w33ble/refluxjs/teams","hooks_url":"https://api.github.com/repos/w33ble/refluxjs/hooks","issue_events_url":"https://api.github.com/repos/w33ble/refluxjs/issues/events{/number}","events_url":"https://api.github.com/repos/w33ble/refluxjs/events","assignees_url":"https://api.github.com/repos/w33ble/refluxjs/assignees{/user}","branches_url":"https://api.github.com/repos/w33ble/refluxjs/branches{/branch}","tags_url":"https://api.github.com/repos/w33ble/refluxjs/tags","blobs_url":"https://api.github.com/repos/w33ble/refluxjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w33ble/refluxjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w33ble/refluxjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/w33ble/refluxjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w33ble/refluxjs/statuses/{sha}","languages_url":"https://api.github.com/repos/w33ble/refluxjs/languages","stargazers_url":"https://api.github.com/repos/w33ble/refluxjs/stargazers","contributors_url":"https://api.github.com/repos/w33ble/refluxjs/contributors","subscribers_url":"https://api.github.com/repos/w33ble/refluxjs/subscribers","subscription_url":"https://api.github.com/repos/w33ble/refluxjs/subscription","commits_url":"https://api.github.com/repos/w33ble/refluxjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/w33ble/refluxjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/w33ble/refluxjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/w33ble/refluxjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/w33ble/refluxjs/contents/{+path}","compare_url":"https://api.github.com/repos/w33ble/refluxjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w33ble/refluxjs/merges","archive_url":"https://api.github.com/repos/w33ble/refluxjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w33ble/refluxjs/downloads","issues_url":"https://api.github.com/repos/w33ble/refluxjs/issues{/number}","pulls_url":"https://api.github.com/repos/w33ble/refluxjs/pulls{/number}","milestones_url":"https://api.github.com/repos/w33ble/refluxjs/milestones{/number}","notifications_url":"https://api.github.com/repos/w33ble/refluxjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w33ble/refluxjs/labels{/name}","releases_url":"https://api.github.com/repos/w33ble/refluxjs/releases{/id}","created_at":"2015-02-16T19:53:08Z","updated_at":"2015-02-16T19:53:09Z","pushed_at":"2015-02-16T23:47:37Z","git_url":"git://github.com/w33ble/refluxjs.git","ssh_url":"git@github.com:w33ble/refluxjs.git","clone_url":"https://github.com/w33ble/refluxjs.git","svn_url":"https://github.com/w33ble/refluxjs","homepage":null,"size":495,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spoike:master","ref":"master","sha":"32c01649c4a893fb0fbf556650df4f6fe49daee7","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},"repo":{"id":21397581,"name":"refluxjs","full_name":"spoike/refluxjs","owner":{"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},"private":false,"html_url":"https://github.com/spoike/refluxjs","description":"A simple library for uni-directional dataflow application architecture inspired by ReactJS Flux","fork":false,"url":"https://api.github.com/repos/spoike/refluxjs","forks_url":"https://api.github.com/repos/spoike/refluxjs/forks","keys_url":"https://api.github.com/repos/spoike/refluxjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spoike/refluxjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spoike/refluxjs/teams","hooks_url":"https://api.github.com/repos/spoike/refluxjs/hooks","issue_events_url":"https://api.github.com/repos/spoike/refluxjs/issues/events{/number}","events_url":"https://api.github.com/repos/spoike/refluxjs/events","assignees_url":"https://api.github.com/repos/spoike/refluxjs/assignees{/user}","branches_url":"https://api.github.com/repos/spoike/refluxjs/branches{/branch}","tags_url":"https://api.github.com/repos/spoike/refluxjs/tags","blobs_url":"https://api.github.com/repos/spoike/refluxjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spoike/refluxjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spoike/refluxjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/spoike/refluxjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spoike/refluxjs/statuses/{sha}","languages_url":"https://api.github.com/repos/spoike/refluxjs/languages","stargazers_url":"https://api.github.com/repos/spoike/refluxjs/stargazers","contributors_url":"https://api.github.com/repos/spoike/refluxjs/contributors","subscribers_url":"https://api.github.com/repos/spoike/refluxjs/subscribers","subscription_url":"https://api.github.com/repos/spoike/refluxjs/subscription","commits_url":"https://api.github.com/repos/spoike/refluxjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/spoike/refluxjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/spoike/refluxjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/spoike/refluxjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/spoike/refluxjs/contents/{+path}","compare_url":"https://api.github.com/repos/spoike/refluxjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spoike/refluxjs/merges","archive_url":"https://api.github.com/repos/spoike/refluxjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spoike/refluxjs/downloads","issues_url":"https://api.github.com/repos/spoike/refluxjs/issues{/number}","pulls_url":"https://api.github.com/repos/spoike/refluxjs/pulls{/number}","milestones_url":"https://api.github.com/repos/spoike/refluxjs/milestones{/number}","notifications_url":"https://api.github.com/repos/spoike/refluxjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spoike/refluxjs/labels{/name}","releases_url":"https://api.github.com/repos/spoike/refluxjs/releases{/id}","created_at":"2014-07-01T18:05:30Z","updated_at":"2015-05-07T19:36:39Z","pushed_at":"2015-05-07T15:11:16Z","git_url":"git://github.com/spoike/refluxjs.git","ssh_url":"git@github.com:spoike/refluxjs.git","clone_url":"https://github.com/spoike/refluxjs.git","svn_url":"https://github.com/spoike/refluxjs","homepage":null,"size":2355,"stargazers_count":2470,"watchers_count":2470,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":144,"mirror_url":null,"open_issues_count":112,"forks":144,"open_issues":112,"watchers":2470,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spoike/refluxjs/pulls/249"},"html":{"href":"https://github.com/spoike/refluxjs/pull/249"},"issue":{"href":"https://api.github.com/repos/spoike/refluxjs/issues/249"},"comments":{"href":"https://api.github.com/repos/spoike/refluxjs/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/spoike/refluxjs/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/spoike/refluxjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spoike/refluxjs/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/spoike/refluxjs/statuses/391e08c316c2cb5386412fc38ddd2cee75840a4c"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":4,"review_comments":0,"commits":2,"additions":48,"deletions":1,"changed_files":2}}