{"action":"closed","number":598,"pull_request":{"url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/598","id":218267392,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MjY3Mzky","html_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/598","diff_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/598.diff","patch_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/598.patch","issue_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/598","number":598,"state":"closed","locked":false,"title":"vNext - Module initialisation","user":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"body":"Initialize modules upon initialization of cornerstoneTools on a cornerstone enabled element.\r\nThe brush module actually only initializes the `colormap` once, as the map is global (for now). But in the general case an initialization routine can run on each new `enabledElement`.\r\n\r\nAny module that exposes an `init (enabledElement) `function will have this called when `addEnabledElement` is called.\r\n\r\nThis should hopefully fix the issues @vsaase was having.","created_at":"2018-09-26T10:39:38Z","updated_at":"2018-09-27T10:16:23Z","closed_at":"2018-09-27T10:16:23Z","merged_at":"2018-09-27T10:16:22Z","merge_commit_sha":"c8b282312c9d489d15e979b9c009a113221ff04a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/598/commits","review_comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/598/comments","review_comment_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/598/comments","statuses_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/8dfa00c361468277854ff0d027f86b3b89811f54","head":{"label":"JamesAPetts:vNext-BrushInit","ref":"vNext-BrushInit","sha":"8dfa00c361468277854ff0d027f86b3b89811f54","user":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"repo":{"id":117533491,"node_id":"MDEwOlJlcG9zaXRvcnkxMTc1MzM0OTE=","name":"cornerstoneTools","full_name":"JamesAPetts/cornerstoneTools","private":false,"owner":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"html_url":"https://github.com/JamesAPetts/cornerstoneTools","description":"A framework for tools built on top of Cornerstone.","fork":true,"url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools","forks_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/forks","keys_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/teams","hooks_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/hooks","issue_events_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/issues/events{/number}","events_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/events","assignees_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/assignees{/user}","branches_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/branches{/branch}","tags_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/tags","blobs_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/languages","stargazers_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/stargazers","contributors_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/contributors","subscribers_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/subscribers","subscription_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/subscription","commits_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/contents/{+path}","compare_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/merges","archive_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/downloads","issues_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/issues{/number}","pulls_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/labels{/name}","releases_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/releases{/id}","deployments_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/deployments","created_at":"2018-01-15T10:51:12Z","updated_at":"2018-04-25T13:59:46Z","pushed_at":"2018-09-27T10:08:38Z","git_url":"git://github.com/JamesAPetts/cornerstoneTools.git","ssh_url":"git@github.com:JamesAPetts/cornerstoneTools.git","clone_url":"https://github.com/JamesAPetts/cornerstoneTools.git","svn_url":"https://github.com/JamesAPetts/cornerstoneTools","homepage":"http://tools.cornerstonejs.org/","size":41674,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cornerstonejs:vNext","ref":"vNext","sha":"8f7b1d1180effb30cf2ecbc18bd5f19ce2f34bb2","user":{"login":"cornerstonejs","id":34072764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDcyNzY0","avatar_url":"https://avatars1.githubusercontent.com/u/34072764?v=4","gravatar_id":"","url":"https://api.github.com/users/cornerstonejs","html_url":"https://github.com/cornerstonejs","followers_url":"https://api.github.com/users/cornerstonejs/followers","following_url":"https://api.github.com/users/cornerstonejs/following{/other_user}","gists_url":"https://api.github.com/users/cornerstonejs/gists{/gist_id}","starred_url":"https://api.github.com/users/cornerstonejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cornerstonejs/subscriptions","organizations_url":"https://api.github.com/users/cornerstonejs/orgs","repos_url":"https://api.github.com/users/cornerstonejs/repos","events_url":"https://api.github.com/users/cornerstonejs/events{/privacy}","received_events_url":"https://api.github.com/users/cornerstonejs/received_events","type":"Organization","site_admin":false},"repo":{"id":18408166,"node_id":"MDEwOlJlcG9zaXRvcnkxODQwODE2Ng==","name":"cornerstoneTools","full_name":"cornerstonejs/cornerstoneTools","private":false,"owner":{"login":"cornerstonejs","id":34072764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDcyNzY0","avatar_url":"https://avatars1.githubusercontent.com/u/34072764?v=4","gravatar_id":"","url":"https://api.github.com/users/cornerstonejs","html_url":"https://github.com/cornerstonejs","followers_url":"https://api.github.com/users/cornerstonejs/followers","following_url":"https://api.github.com/users/cornerstonejs/following{/other_user}","gists_url":"https://api.github.com/users/cornerstonejs/gists{/gist_id}","starred_url":"https://api.github.com/users/cornerstonejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cornerstonejs/subscriptions","organizations_url":"https://api.github.com/users/cornerstonejs/orgs","repos_url":"https://api.github.com/users/cornerstonejs/repos","events_url":"https://api.github.com/users/cornerstonejs/events{/privacy}","received_events_url":"https://api.github.com/users/cornerstonejs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cornerstonejs/cornerstoneTools","description":"A framework for tools built on top of Cornerstone.","fork":false,"url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools","forks_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/forks","keys_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/teams","hooks_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/hooks","issue_events_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/events{/number}","events_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/events","assignees_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/assignees{/user}","branches_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/branches{/branch}","tags_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/tags","blobs_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/{sha}","languages_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/languages","stargazers_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/stargazers","contributors_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/contributors","subscribers_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/subscribers","subscription_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/subscription","commits_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/comments{/number}","contents_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/contents/{+path}","compare_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/merges","archive_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/downloads","issues_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues{/number}","pulls_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls{/number}","milestones_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/milestones{/number}","notifications_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/labels{/name}","releases_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/releases{/id}","deployments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/deployments","created_at":"2014-04-03T15:30:55Z","updated_at":"2018-09-25T16:06:27Z","pushed_at":"2018-09-27T10:16:22Z","git_url":"git://github.com/cornerstonejs/cornerstoneTools.git","ssh_url":"git@github.com:cornerstonejs/cornerstoneTools.git","clone_url":"https://github.com/cornerstonejs/cornerstoneTools.git","svn_url":"https://github.com/cornerstonejs/cornerstoneTools","homepage":"https://tools.cornerstonejs.org/","size":34381,"stargazers_count":168,"watchers_count":168,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":170,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":170,"open_issues":43,"watchers":168,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/598"},"html":{"href":"https://github.com/cornerstonejs/cornerstoneTools/pull/598"},"issue":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/598"},"comments":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/598/comments"},"review_comments":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/598/comments"},"review_comment":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/598/commits"},"statuses":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/8dfa00c361468277854ff0d027f86b3b89811f54"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"maintainer_can_modify":false,"commits":8,"additions":204,"deletions":70,"changed_files":5}}
{"actor":{"display_login":"JamesAPetts"}}