{"action":"created","comment":{"url":"https://api.github.com/repos/novus/nvd3/pulls/comments/46086515","id":46086515,"diff_hunk":"@@ -95,25 +106,43 @@\n \r\n                     // build list of sub-components for this chart object\r\n                     var props = Object.getOwnPropertyNames(chart);\r\n-                    var propdom = $('<div></div>');\r\n+                    var propdom = $('<div></div>').addClass('propdom');\r\n                     var proplist = {};\r\n+                    var dispatchList = [];\r\n+\r\n                     for (var p in props) {\r\n                         try {\r\n                             var prop = chart[props[p]];\r\n                             if ((prop instanceof Object) && !(prop instanceof Array) && prop._options) {\r\n                                 proplist[props[p]] = props[p];\r\n                             }\r\n-                        }catch(e) {}\r\n+                        } catch(e) {}\r\n                     }\r\n+\r\n                     // only add sub-component list if some exist.\r\n                     if (Object.keys(proplist).length > 0) {\r\n-                        propdom.append($('<span>Components: </span>'));\r\n+                        propdom.append($('<span class=\"label\">Components: </span>'));\r\n                         var pstrings = [];\r\n                         for (var p in proplist) {\r\n                             pstrings.push('<span class=\"prop\">' + p + '</span>');\r\n                         }\r\n                         propdom.append($(pstrings.join(', ')));\r\n-                        c.append(propdom);\r\n+                    }\r\n+\r\n+                    // add event dispatchers by the chart;\r\n+                    dispatchList = getProps(chart, 'dispatch');\r\n+                    if (dispatchList.length) {\r\n+                      propdom.append($('<br/>'));\r\n+                      propdom.append($('<span class=\"label\">Events: </span>'));\r\n+                      var dispatchString = dispatchList.map(function(dispatcherName) {\r\n+                        return '<span class=\"event\">' + dispatcherName + '</span>';\r\n+                      }).join(' ');\r\n+                      propdom.append(dispatchString);\r\n+                    }\r\n+\r\n+                    if (propdom.children().length) {\r\n+                      propdom.addClass('populated');\r\n+                      c.append(propdom);\r","path":"examples/documentation.html","position":62,"original_position":62,"commit_id":"10be68636a5ee363b59085f0672152370306fc1f","original_commit_id":"10be68636a5ee363b59085f0672152370306fc1f","user":{"login":"adnasa","id":462507,"avatar_url":"https://avatars.githubusercontent.com/u/462507?v=3","gravatar_id":"","url":"https://api.github.com/users/adnasa","html_url":"https://github.com/adnasa","followers_url":"https://api.github.com/users/adnasa/followers","following_url":"https://api.github.com/users/adnasa/following{/other_user}","gists_url":"https://api.github.com/users/adnasa/gists{/gist_id}","starred_url":"https://api.github.com/users/adnasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnasa/subscriptions","organizations_url":"https://api.github.com/users/adnasa/orgs","repos_url":"https://api.github.com/users/adnasa/repos","events_url":"https://api.github.com/users/adnasa/events{/privacy}","received_events_url":"https://api.github.com/users/adnasa/received_events","type":"User","site_admin":false},"body":"Will fix that now ;)","created_at":"2015-11-29T01:20:07Z","updated_at":"2015-11-29T01:20:07Z","html_url":"https://github.com/novus/nvd3/pull/1381#discussion_r46086515","pull_request_url":"https://api.github.com/repos/novus/nvd3/pulls/1381","_links":{"self":{"href":"https://api.github.com/repos/novus/nvd3/pulls/comments/46086515"},"html":{"href":"https://github.com/novus/nvd3/pull/1381#discussion_r46086515"},"pull_request":{"href":"https://api.github.com/repos/novus/nvd3/pulls/1381"}}},"pull_request":{"url":"https://api.github.com/repos/novus/nvd3/pulls/1381","id":52051892,"html_url":"https://github.com/novus/nvd3/pull/1381","diff_url":"https://github.com/novus/nvd3/pull/1381.diff","patch_url":"https://github.com/novus/nvd3/pull/1381.patch","issue_url":"https://api.github.com/repos/novus/nvd3/issues/1381","number":1381,"state":"open","locked":false,"title":"Updated the documentation list with a events section. For starters","user":{"login":"adnasa","id":462507,"avatar_url":"https://avatars.githubusercontent.com/u/462507?v=3","gravatar_id":"","url":"https://api.github.com/users/adnasa","html_url":"https://github.com/adnasa","followers_url":"https://api.github.com/users/adnasa/followers","following_url":"https://api.github.com/users/adnasa/following{/other_user}","gists_url":"https://api.github.com/users/adnasa/gists{/gist_id}","starred_url":"https://api.github.com/users/adnasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnasa/subscriptions","organizations_url":"https://api.github.com/users/adnasa/orgs","repos_url":"https://api.github.com/users/adnasa/repos","events_url":"https://api.github.com/users/adnasa/events{/privacy}","received_events_url":"https://api.github.com/users/adnasa/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-29T00:50:21Z","updated_at":"2015-11-29T01:20:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0de3033f244be30f4b2eb603871b4ec895a43ae1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/novus/nvd3/pulls/1381/commits","review_comments_url":"https://api.github.com/repos/novus/nvd3/pulls/1381/comments","review_comment_url":"https://api.github.com/repos/novus/nvd3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/novus/nvd3/issues/1381/comments","statuses_url":"https://api.github.com/repos/novus/nvd3/statuses/10be68636a5ee363b59085f0672152370306fc1f","head":{"label":"adnasa:doc-events","ref":"doc-events","sha":"10be68636a5ee363b59085f0672152370306fc1f","user":{"login":"adnasa","id":462507,"avatar_url":"https://avatars.githubusercontent.com/u/462507?v=3","gravatar_id":"","url":"https://api.github.com/users/adnasa","html_url":"https://github.com/adnasa","followers_url":"https://api.github.com/users/adnasa/followers","following_url":"https://api.github.com/users/adnasa/following{/other_user}","gists_url":"https://api.github.com/users/adnasa/gists{/gist_id}","starred_url":"https://api.github.com/users/adnasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnasa/subscriptions","organizations_url":"https://api.github.com/users/adnasa/orgs","repos_url":"https://api.github.com/users/adnasa/repos","events_url":"https://api.github.com/users/adnasa/events{/privacy}","received_events_url":"https://api.github.com/users/adnasa/received_events","type":"User","site_admin":false},"repo":{"id":46737987,"name":"nvd3","full_name":"adnasa/nvd3","owner":{"login":"adnasa","id":462507,"avatar_url":"https://avatars.githubusercontent.com/u/462507?v=3","gravatar_id":"","url":"https://api.github.com/users/adnasa","html_url":"https://github.com/adnasa","followers_url":"https://api.github.com/users/adnasa/followers","following_url":"https://api.github.com/users/adnasa/following{/other_user}","gists_url":"https://api.github.com/users/adnasa/gists{/gist_id}","starred_url":"https://api.github.com/users/adnasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnasa/subscriptions","organizations_url":"https://api.github.com/users/adnasa/orgs","repos_url":"https://api.github.com/users/adnasa/repos","events_url":"https://api.github.com/users/adnasa/events{/privacy}","received_events_url":"https://api.github.com/users/adnasa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adnasa/nvd3","description":"A reusable charting library written in d3.js","fork":true,"url":"https://api.github.com/repos/adnasa/nvd3","forks_url":"https://api.github.com/repos/adnasa/nvd3/forks","keys_url":"https://api.github.com/repos/adnasa/nvd3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adnasa/nvd3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adnasa/nvd3/teams","hooks_url":"https://api.github.com/repos/adnasa/nvd3/hooks","issue_events_url":"https://api.github.com/repos/adnasa/nvd3/issues/events{/number}","events_url":"https://api.github.com/repos/adnasa/nvd3/events","assignees_url":"https://api.github.com/repos/adnasa/nvd3/assignees{/user}","branches_url":"https://api.github.com/repos/adnasa/nvd3/branches{/branch}","tags_url":"https://api.github.com/repos/adnasa/nvd3/tags","blobs_url":"https://api.github.com/repos/adnasa/nvd3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adnasa/nvd3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adnasa/nvd3/git/refs{/sha}","trees_url":"https://api.github.com/repos/adnasa/nvd3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adnasa/nvd3/statuses/{sha}","languages_url":"https://api.github.com/repos/adnasa/nvd3/languages","stargazers_url":"https://api.github.com/repos/adnasa/nvd3/stargazers","contributors_url":"https://api.github.com/repos/adnasa/nvd3/contributors","subscribers_url":"https://api.github.com/repos/adnasa/nvd3/subscribers","subscription_url":"https://api.github.com/repos/adnasa/nvd3/subscription","commits_url":"https://api.github.com/repos/adnasa/nvd3/commits{/sha}","git_commits_url":"https://api.github.com/repos/adnasa/nvd3/git/commits{/sha}","comments_url":"https://api.github.com/repos/adnasa/nvd3/comments{/number}","issue_comment_url":"https://api.github.com/repos/adnasa/nvd3/issues/comments{/number}","contents_url":"https://api.github.com/repos/adnasa/nvd3/contents/{+path}","compare_url":"https://api.github.com/repos/adnasa/nvd3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adnasa/nvd3/merges","archive_url":"https://api.github.com/repos/adnasa/nvd3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adnasa/nvd3/downloads","issues_url":"https://api.github.com/repos/adnasa/nvd3/issues{/number}","pulls_url":"https://api.github.com/repos/adnasa/nvd3/pulls{/number}","milestones_url":"https://api.github.com/repos/adnasa/nvd3/milestones{/number}","notifications_url":"https://api.github.com/repos/adnasa/nvd3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adnasa/nvd3/labels{/name}","releases_url":"https://api.github.com/repos/adnasa/nvd3/releases{/id}","created_at":"2015-11-23T17:53:18Z","updated_at":"2015-11-23T17:53:21Z","pushed_at":"2015-11-29T00:49:22Z","git_url":"git://github.com/adnasa/nvd3.git","ssh_url":"git@github.com:adnasa/nvd3.git","clone_url":"https://github.com/adnasa/nvd3.git","svn_url":"https://github.com/adnasa/nvd3","homepage":"http://nvd3.org/","size":14704,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"novus:master","ref":"master","sha":"a19f127faf0da88b8703617b29034b881d74c5d5","user":{"login":"novus","id":293390,"avatar_url":"https://avatars.githubusercontent.com/u/293390?v=3","gravatar_id":"","url":"https://api.github.com/users/novus","html_url":"https://github.com/novus","followers_url":"https://api.github.com/users/novus/followers","following_url":"https://api.github.com/users/novus/following{/other_user}","gists_url":"https://api.github.com/users/novus/gists{/gist_id}","starred_url":"https://api.github.com/users/novus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novus/subscriptions","organizations_url":"https://api.github.com/users/novus/orgs","repos_url":"https://api.github.com/users/novus/repos","events_url":"https://api.github.com/users/novus/events{/privacy}","received_events_url":"https://api.github.com/users/novus/received_events","type":"Organization","site_admin":false},"repo":{"id":6709682,"name":"nvd3","full_name":"novus/nvd3","owner":{"login":"novus","id":293390,"avatar_url":"https://avatars.githubusercontent.com/u/293390?v=3","gravatar_id":"","url":"https://api.github.com/users/novus","html_url":"https://github.com/novus","followers_url":"https://api.github.com/users/novus/followers","following_url":"https://api.github.com/users/novus/following{/other_user}","gists_url":"https://api.github.com/users/novus/gists{/gist_id}","starred_url":"https://api.github.com/users/novus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novus/subscriptions","organizations_url":"https://api.github.com/users/novus/orgs","repos_url":"https://api.github.com/users/novus/repos","events_url":"https://api.github.com/users/novus/events{/privacy}","received_events_url":"https://api.github.com/users/novus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/novus/nvd3","description":"A reusable charting library written in d3.js","fork":false,"url":"https://api.github.com/repos/novus/nvd3","forks_url":"https://api.github.com/repos/novus/nvd3/forks","keys_url":"https://api.github.com/repos/novus/nvd3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/novus/nvd3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/novus/nvd3/teams","hooks_url":"https://api.github.com/repos/novus/nvd3/hooks","issue_events_url":"https://api.github.com/repos/novus/nvd3/issues/events{/number}","events_url":"https://api.github.com/repos/novus/nvd3/events","assignees_url":"https://api.github.com/repos/novus/nvd3/assignees{/user}","branches_url":"https://api.github.com/repos/novus/nvd3/branches{/branch}","tags_url":"https://api.github.com/repos/novus/nvd3/tags","blobs_url":"https://api.github.com/repos/novus/nvd3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/novus/nvd3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/novus/nvd3/git/refs{/sha}","trees_url":"https://api.github.com/repos/novus/nvd3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/novus/nvd3/statuses/{sha}","languages_url":"https://api.github.com/repos/novus/nvd3/languages","stargazers_url":"https://api.github.com/repos/novus/nvd3/stargazers","contributors_url":"https://api.github.com/repos/novus/nvd3/contributors","subscribers_url":"https://api.github.com/repos/novus/nvd3/subscribers","subscription_url":"https://api.github.com/repos/novus/nvd3/subscription","commits_url":"https://api.github.com/repos/novus/nvd3/commits{/sha}","git_commits_url":"https://api.github.com/repos/novus/nvd3/git/commits{/sha}","comments_url":"https://api.github.com/repos/novus/nvd3/comments{/number}","issue_comment_url":"https://api.github.com/repos/novus/nvd3/issues/comments{/number}","contents_url":"https://api.github.com/repos/novus/nvd3/contents/{+path}","compare_url":"https://api.github.com/repos/novus/nvd3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/novus/nvd3/merges","archive_url":"https://api.github.com/repos/novus/nvd3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/novus/nvd3/downloads","issues_url":"https://api.github.com/repos/novus/nvd3/issues{/number}","pulls_url":"https://api.github.com/repos/novus/nvd3/pulls{/number}","milestones_url":"https://api.github.com/repos/novus/nvd3/milestones{/number}","notifications_url":"https://api.github.com/repos/novus/nvd3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/novus/nvd3/labels{/name}","releases_url":"https://api.github.com/repos/novus/nvd3/releases{/id}","created_at":"2012-11-15T18:51:59Z","updated_at":"2015-11-28T22:53:05Z","pushed_at":"2015-11-29T01:03:41Z","git_url":"git://github.com/novus/nvd3.git","ssh_url":"git@github.com:novus/nvd3.git","clone_url":"https://github.com/novus/nvd3.git","svn_url":"https://github.com/novus/nvd3","homepage":"http://nvd3.org/","size":17753,"stargazers_count":4406,"watchers_count":4406,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1554,"mirror_url":null,"open_issues_count":183,"forks":1554,"open_issues":183,"watchers":4406,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/novus/nvd3/pulls/1381"},"html":{"href":"https://github.com/novus/nvd3/pull/1381"},"issue":{"href":"https://api.github.com/repos/novus/nvd3/issues/1381"},"comments":{"href":"https://api.github.com/repos/novus/nvd3/issues/1381/comments"},"review_comments":{"href":"https://api.github.com/repos/novus/nvd3/pulls/1381/comments"},"review_comment":{"href":"https://api.github.com/repos/novus/nvd3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/novus/nvd3/pulls/1381/commits"},"statuses":{"href":"https://api.github.com/repos/novus/nvd3/statuses/10be68636a5ee363b59085f0672152370306fc1f"}}}}