{"action":"created","comment":{"url":"https://api.github.com/repos/ngokevin/aframe-react/pulls/comments/55406347","id":55406347,"diff_hunk":"@@ -14,12 +15,29 @@ function serializeComponents(props) {\n \n     if (props[component].constructor === Function) { return; }\n \n+    var ind = Object.keys(components).indexOf(component);\n+    //Discards props that aren't components.\n+    if (ind === -1) { return; }\n+\n     if (props[component].constructor === Array) {\n       //Stringify components passed as array.\n       serialProps[component] = props[component].join(' ');\n     } else if (props[component].constructor === Object) {\n       // Stringify components passed as object.\n       serialProps[component] = styleParser.stringify(props[component]);\n+    } else if (props[component].constructor === Boolean) {\n+      if (components[component].hasOwnProperty(\"type\")","path":"src/index.js","position":22,"original_position":22,"commit_id":"25a622d2bb37eaa9b578344c9be48d5e88061526","original_commit_id":"25a622d2bb37eaa9b578344c9be48d5e88061526","user":{"login":"ngokevin","id":674727,"avatar_url":"https://avatars.githubusercontent.com/u/674727?v=3","gravatar_id":"","url":"https://api.github.com/users/ngokevin","html_url":"https://github.com/ngokevin","followers_url":"https://api.github.com/users/ngokevin/followers","following_url":"https://api.github.com/users/ngokevin/following{/other_user}","gists_url":"https://api.github.com/users/ngokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/ngokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngokevin/subscriptions","organizations_url":"https://api.github.com/users/ngokevin/orgs","repos_url":"https://api.github.com/users/ngokevin/repos","events_url":"https://api.github.com/users/ngokevin/events{/privacy}","received_events_url":"https://api.github.com/users/ngokevin/received_events","type":"User","site_admin":false},"body":"Shouldn't this be checking the schema, not the component?","created_at":"2016-03-08T18:45:42Z","updated_at":"2016-03-08T18:45:42Z","html_url":"https://github.com/ngokevin/aframe-react/pull/23#discussion_r55406347","pull_request_url":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/ngokevin/aframe-react/pulls/comments/55406347"},"html":{"href":"https://github.com/ngokevin/aframe-react/pull/23#discussion_r55406347"},"pull_request":{"href":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23","id":61343876,"html_url":"https://github.com/ngokevin/aframe-react/pull/23","diff_url":"https://github.com/ngokevin/aframe-react/pull/23.diff","patch_url":"https://github.com/ngokevin/aframe-react/pull/23.patch","issue_url":"https://api.github.com/repos/ngokevin/aframe-react/issues/23","number":23,"state":"open","locked":false,"title":"Pass empty props to aframe as \"\"","user":{"login":"shea-hawkins","id":14796647,"avatar_url":"https://avatars.githubusercontent.com/u/14796647?v=3","gravatar_id":"","url":"https://api.github.com/users/shea-hawkins","html_url":"https://github.com/shea-hawkins","followers_url":"https://api.github.com/users/shea-hawkins/followers","following_url":"https://api.github.com/users/shea-hawkins/following{/other_user}","gists_url":"https://api.github.com/users/shea-hawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/shea-hawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shea-hawkins/subscriptions","organizations_url":"https://api.github.com/users/shea-hawkins/orgs","repos_url":"https://api.github.com/users/shea-hawkins/repos","events_url":"https://api.github.com/users/shea-hawkins/events{/privacy}","received_events_url":"https://api.github.com/users/shea-hawkins/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-02T02:49:20Z","updated_at":"2016-03-08T18:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e0bb560bb23ac38f0ed989b4b603de68ea630c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23/commits","review_comments_url":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23/comments","review_comment_url":"https://api.github.com/repos/ngokevin/aframe-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ngokevin/aframe-react/issues/23/comments","statuses_url":"https://api.github.com/repos/ngokevin/aframe-react/statuses/25a622d2bb37eaa9b578344c9be48d5e88061526","head":{"label":"shea-hawkins:master","ref":"master","sha":"25a622d2bb37eaa9b578344c9be48d5e88061526","user":{"login":"shea-hawkins","id":14796647,"avatar_url":"https://avatars.githubusercontent.com/u/14796647?v=3","gravatar_id":"","url":"https://api.github.com/users/shea-hawkins","html_url":"https://github.com/shea-hawkins","followers_url":"https://api.github.com/users/shea-hawkins/followers","following_url":"https://api.github.com/users/shea-hawkins/following{/other_user}","gists_url":"https://api.github.com/users/shea-hawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/shea-hawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shea-hawkins/subscriptions","organizations_url":"https://api.github.com/users/shea-hawkins/orgs","repos_url":"https://api.github.com/users/shea-hawkins/repos","events_url":"https://api.github.com/users/shea-hawkins/events{/privacy}","received_events_url":"https://api.github.com/users/shea-hawkins/received_events","type":"User","site_admin":false},"repo":{"id":52688548,"name":"aframe-react","full_name":"shea-hawkins/aframe-react","owner":{"login":"shea-hawkins","id":14796647,"avatar_url":"https://avatars.githubusercontent.com/u/14796647?v=3","gravatar_id":"","url":"https://api.github.com/users/shea-hawkins","html_url":"https://github.com/shea-hawkins","followers_url":"https://api.github.com/users/shea-hawkins/followers","following_url":"https://api.github.com/users/shea-hawkins/following{/other_user}","gists_url":"https://api.github.com/users/shea-hawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/shea-hawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shea-hawkins/subscriptions","organizations_url":"https://api.github.com/users/shea-hawkins/orgs","repos_url":"https://api.github.com/users/shea-hawkins/repos","events_url":"https://api.github.com/users/shea-hawkins/events{/privacy}","received_events_url":"https://api.github.com/users/shea-hawkins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shea-hawkins/aframe-react","description":":sunglasses: Combining A-Frame VR with React.","fork":true,"url":"https://api.github.com/repos/shea-hawkins/aframe-react","forks_url":"https://api.github.com/repos/shea-hawkins/aframe-react/forks","keys_url":"https://api.github.com/repos/shea-hawkins/aframe-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shea-hawkins/aframe-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shea-hawkins/aframe-react/teams","hooks_url":"https://api.github.com/repos/shea-hawkins/aframe-react/hooks","issue_events_url":"https://api.github.com/repos/shea-hawkins/aframe-react/issues/events{/number}","events_url":"https://api.github.com/repos/shea-hawkins/aframe-react/events","assignees_url":"https://api.github.com/repos/shea-hawkins/aframe-react/assignees{/user}","branches_url":"https://api.github.com/repos/shea-hawkins/aframe-react/branches{/branch}","tags_url":"https://api.github.com/repos/shea-hawkins/aframe-react/tags","blobs_url":"https://api.github.com/repos/shea-hawkins/aframe-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shea-hawkins/aframe-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shea-hawkins/aframe-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/shea-hawkins/aframe-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shea-hawkins/aframe-react/statuses/{sha}","languages_url":"https://api.github.com/repos/shea-hawkins/aframe-react/languages","stargazers_url":"https://api.github.com/repos/shea-hawkins/aframe-react/stargazers","contributors_url":"https://api.github.com/repos/shea-hawkins/aframe-react/contributors","subscribers_url":"https://api.github.com/repos/shea-hawkins/aframe-react/subscribers","subscription_url":"https://api.github.com/repos/shea-hawkins/aframe-react/subscription","commits_url":"https://api.github.com/repos/shea-hawkins/aframe-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/shea-hawkins/aframe-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/shea-hawkins/aframe-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/shea-hawkins/aframe-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/shea-hawkins/aframe-react/contents/{+path}","compare_url":"https://api.github.com/repos/shea-hawkins/aframe-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shea-hawkins/aframe-react/merges","archive_url":"https://api.github.com/repos/shea-hawkins/aframe-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shea-hawkins/aframe-react/downloads","issues_url":"https://api.github.com/repos/shea-hawkins/aframe-react/issues{/number}","pulls_url":"https://api.github.com/repos/shea-hawkins/aframe-react/pulls{/number}","milestones_url":"https://api.github.com/repos/shea-hawkins/aframe-react/milestones{/number}","notifications_url":"https://api.github.com/repos/shea-hawkins/aframe-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shea-hawkins/aframe-react/labels{/name}","releases_url":"https://api.github.com/repos/shea-hawkins/aframe-react/releases{/id}","deployments_url":"https://api.github.com/repos/shea-hawkins/aframe-react/deployments","created_at":"2016-02-27T21:01:13Z","updated_at":"2016-02-27T21:01:13Z","pushed_at":"2016-03-04T02:23:30Z","git_url":"git://github.com/shea-hawkins/aframe-react.git","ssh_url":"git@github.com:shea-hawkins/aframe-react.git","clone_url":"https://github.com/shea-hawkins/aframe-react.git","svn_url":"https://github.com/shea-hawkins/aframe-react","homepage":"","size":28,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ngokevin:master","ref":"master","sha":"75923f5ad9ac92b89c1562d5930e655d6855c03c","user":{"login":"ngokevin","id":674727,"avatar_url":"https://avatars.githubusercontent.com/u/674727?v=3","gravatar_id":"","url":"https://api.github.com/users/ngokevin","html_url":"https://github.com/ngokevin","followers_url":"https://api.github.com/users/ngokevin/followers","following_url":"https://api.github.com/users/ngokevin/following{/other_user}","gists_url":"https://api.github.com/users/ngokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/ngokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngokevin/subscriptions","organizations_url":"https://api.github.com/users/ngokevin/orgs","repos_url":"https://api.github.com/users/ngokevin/repos","events_url":"https://api.github.com/users/ngokevin/events{/privacy}","received_events_url":"https://api.github.com/users/ngokevin/received_events","type":"User","site_admin":false},"repo":{"id":48141141,"name":"aframe-react","full_name":"ngokevin/aframe-react","owner":{"login":"ngokevin","id":674727,"avatar_url":"https://avatars.githubusercontent.com/u/674727?v=3","gravatar_id":"","url":"https://api.github.com/users/ngokevin","html_url":"https://github.com/ngokevin","followers_url":"https://api.github.com/users/ngokevin/followers","following_url":"https://api.github.com/users/ngokevin/following{/other_user}","gists_url":"https://api.github.com/users/ngokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/ngokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngokevin/subscriptions","organizations_url":"https://api.github.com/users/ngokevin/orgs","repos_url":"https://api.github.com/users/ngokevin/repos","events_url":"https://api.github.com/users/ngokevin/events{/privacy}","received_events_url":"https://api.github.com/users/ngokevin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ngokevin/aframe-react","description":":sunglasses: Combining A-Frame VR with React.","fork":false,"url":"https://api.github.com/repos/ngokevin/aframe-react","forks_url":"https://api.github.com/repos/ngokevin/aframe-react/forks","keys_url":"https://api.github.com/repos/ngokevin/aframe-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngokevin/aframe-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngokevin/aframe-react/teams","hooks_url":"https://api.github.com/repos/ngokevin/aframe-react/hooks","issue_events_url":"https://api.github.com/repos/ngokevin/aframe-react/issues/events{/number}","events_url":"https://api.github.com/repos/ngokevin/aframe-react/events","assignees_url":"https://api.github.com/repos/ngokevin/aframe-react/assignees{/user}","branches_url":"https://api.github.com/repos/ngokevin/aframe-react/branches{/branch}","tags_url":"https://api.github.com/repos/ngokevin/aframe-react/tags","blobs_url":"https://api.github.com/repos/ngokevin/aframe-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngokevin/aframe-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngokevin/aframe-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngokevin/aframe-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngokevin/aframe-react/statuses/{sha}","languages_url":"https://api.github.com/repos/ngokevin/aframe-react/languages","stargazers_url":"https://api.github.com/repos/ngokevin/aframe-react/stargazers","contributors_url":"https://api.github.com/repos/ngokevin/aframe-react/contributors","subscribers_url":"https://api.github.com/repos/ngokevin/aframe-react/subscribers","subscription_url":"https://api.github.com/repos/ngokevin/aframe-react/subscription","commits_url":"https://api.github.com/repos/ngokevin/aframe-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngokevin/aframe-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngokevin/aframe-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngokevin/aframe-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngokevin/aframe-react/contents/{+path}","compare_url":"https://api.github.com/repos/ngokevin/aframe-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngokevin/aframe-react/merges","archive_url":"https://api.github.com/repos/ngokevin/aframe-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngokevin/aframe-react/downloads","issues_url":"https://api.github.com/repos/ngokevin/aframe-react/issues{/number}","pulls_url":"https://api.github.com/repos/ngokevin/aframe-react/pulls{/number}","milestones_url":"https://api.github.com/repos/ngokevin/aframe-react/milestones{/number}","notifications_url":"https://api.github.com/repos/ngokevin/aframe-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngokevin/aframe-react/labels{/name}","releases_url":"https://api.github.com/repos/ngokevin/aframe-react/releases{/id}","deployments_url":"https://api.github.com/repos/ngokevin/aframe-react/deployments","created_at":"2015-12-16T23:33:37Z","updated_at":"2016-02-29T21:40:35Z","pushed_at":"2016-03-08T18:43:56Z","git_url":"git://github.com/ngokevin/aframe-react.git","ssh_url":"git@github.com:ngokevin/aframe-react.git","clone_url":"https://github.com/ngokevin/aframe-react.git","svn_url":"https://github.com/ngokevin/aframe-react","homepage":"","size":36,"stargazers_count":71,"watchers_count":71,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":8,"forks":7,"open_issues":8,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23"},"html":{"href":"https://github.com/ngokevin/aframe-react/pull/23"},"issue":{"href":"https://api.github.com/repos/ngokevin/aframe-react/issues/23"},"comments":{"href":"https://api.github.com/repos/ngokevin/aframe-react/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/ngokevin/aframe-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ngokevin/aframe-react/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/ngokevin/aframe-react/statuses/25a622d2bb37eaa9b578344c9be48d5e88061526"}}}}