GitHub PullRequestEvent at 2014-08-18 17:22:35
Repository: react-rails
Actor: glittershark
Payload: {"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/glittershark/react-rails/pulls/1","id":19931656,"html_url":"https://github.com/glittershark/react-rails/pull/1","diff_url":"https://github.com/glittershark/react-rails/pull/1.diff","patch_url":"https://github.com/glittershark/react-rails/pull/1.patch","issue_url":"https://api.github.com/repos/glittershark/react-rails/issues/1","number":1,"state":"open","locked":false,"title":"Make sure to only mount components once per DOM node","user":{"login":"glittershark","id":1481027,"avatar_url":"https://avatars.githubusercontent.com/u/1481027?v=2","gravatar_id":"4ad4b23dfdc9b5e3c404d74c2f32718f","url":"https://api.github.com/users/glittershark","html_url":"https://github.com/glittershark","followers_url":"https://api.github.com/users/glittershark/followers","following_url":"https://api.github.com/users/glittershark/following{/other_user}","gists_url":"https://api.github.com/users/glittershark/gists{/gist_id}","starred_url":"https://api.github.com/users/glittershark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittershark/subscriptions","organizations_url":"https://api.github.com/users/glittershark/orgs","repos_url":"https://api.github.com/users/glittershark/repos","events_url":"https://api.github.com/users/glittershark/events{/privacy}","received_events_url":"https://api.github.com/users/glittershark/received_events","type":"User","site_admin":false},"body":"I've been encountering an issue where on initial page load the event\nhandler for `page:change` was getting fired twice, causing the React\ncomponents to be mounted twice, which caused all sorts of trouble. This\nintroduces a simple map of DOM nodes to booleans that acts as a guard\nagainst nodes getting components mounted to them more than once.","created_at":"2014-08-18T17:22:35Z","updated_at":"2014-08-18T17:22:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6e07f24b45c71ba6ca6ee6aaec331e8dddd9752","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glittershark/react-rails/pulls/1/commits","review_comments_url":"https://api.github.com/repos/glittershark/react-rails/pulls/1/comments","review_comment_url":"https://api.github.com/repos/glittershark/react-rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/glittershark/react-rails/issues/1/comments","statuses_url":"https://api.github.com/repos/glittershark/react-rails/statuses/743dc772c9fcf9599959bb71c1846d36afbe8264","head":{"label":"glittershark:only-mount-once","ref":"only-mount-once","sha":"743dc772c9fcf9599959bb71c1846d36afbe8264","user":{"login":"glittershark","id":1481027,"avatar_url":"https://avatars.githubusercontent.com/u/1481027?v=2","gravatar_id":"4ad4b23dfdc9b5e3c404d74c2f32718f","url":"https://api.github.com/users/glittershark","html_url":"https://github.com/glittershark","followers_url":"https://api.github.com/users/glittershark/followers","following_url":"https://api.github.com/users/glittershark/following{/other_user}","gists_url":"https://api.github.com/users/glittershark/gists{/gist_id}","starred_url":"https://api.github.com/users/glittershark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittershark/subscriptions","organizations_url":"https://api.github.com/users/glittershark/orgs","repos_url":"https://api.github.com/users/glittershark/repos","events_url":"https://api.github.com/users/glittershark/events{/privacy}","received_events_url":"https://api.github.com/users/glittershark/received_events","type":"User","site_admin":false},"repo":{"id":23074843,"name":"react-rails","full_name":"glittershark/react-rails","owner":{"login":"glittershark","id":1481027,"avatar_url":"https://avatars.githubusercontent.com/u/1481027?v=2","gravatar_id":"4ad4b23dfdc9b5e3c404d74c2f32718f","url":"https://api.github.com/users/glittershark","html_url":"https://github.com/glittershark","followers_url":"https://api.github.com/users/glittershark/followers","following_url":"https://api.github.com/users/glittershark/following{/other_user}","gists_url":"https://api.github.com/users/glittershark/gists{/gist_id}","starred_url":"https://api.github.com/users/glittershark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittershark/subscriptions","organizations_url":"https://api.github.com/users/glittershark/orgs","repos_url":"https://api.github.com/users/glittershark/repos","events_url":"https://api.github.com/users/glittershark/events{/privacy}","received_events_url":"https://api.github.com/users/glittershark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glittershark/react-rails","description":"Ruby gem for automatically transforming JSX and using React in Rails.","fork":true,"url":"https://api.github.com/repos/glittershark/react-rails","forks_url":"https://api.github.com/repos/glittershark/react-rails/forks","keys_url":"https://api.github.com/repos/glittershark/react-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glittershark/react-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glittershark/react-rails/teams","hooks_url":"https://api.github.com/repos/glittershark/react-rails/hooks","issue_events_url":"https://api.github.com/repos/glittershark/react-rails/issues/events{/number}","events_url":"https://api.github.com/repos/glittershark/react-rails/events","assignees_url":"https://api.github.com/repos/glittershark/react-rails/assignees{/user}","branches_url":"https://api.github.com/repos/glittershark/react-rails/branches{/branch}","tags_url":"https://api.github.com/repos/glittershark/react-rails/tags","blobs_url":"https://api.github.com/repos/glittershark/react-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glittershark/react-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glittershark/react-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/glittershark/react-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glittershark/react-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/glittershark/react-rails/languages","stargazers_url":"https://api.github.com/repos/glittershark/react-rails/stargazers","contributors_url":"https://api.github.com/repos/glittershark/react-rails/contributors","subscribers_url":"https://api.github.com/repos/glittershark/react-rails/subscribers","subscription_url":"https://api.github.com/repos/glittershark/react-rails/subscription","commits_url":"https://api.github.com/repos/glittershark/react-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/glittershark/react-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/glittershark/react-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/glittershark/react-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/glittershark/react-rails/contents/{+path}","compare_url":"https://api.github.com/repos/glittershark/react-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glittershark/react-rails/merges","archive_url":"https://api.github.com/repos/glittershark/react-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glittershark/react-rails/downloads","issues_url":"https://api.github.com/repos/glittershark/react-rails/issues{/number}","pulls_url":"https://api.github.com/repos/glittershark/react-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/glittershark/react-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/glittershark/react-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glittershark/react-rails/labels{/name}","releases_url":"https://api.github.com/repos/glittershark/react-rails/releases{/id}","created_at":"2014-08-18T14:44:26Z","updated_at":"2014-08-18T02:35:05Z","pushed_at":"2014-08-18T17:22:29Z","git_url":"git://github.com/glittershark/react-rails.git","ssh_url":"git@github.com:glittershark/react-rails.git","clone_url":"https://github.com/glittershark/react-rails.git","svn_url":"https://github.com/glittershark/react-rails","homepage":null,"size":1436,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"glittershark:master","ref":"master","sha":"b4051e111aa8ec3e68b8924e1f13598f18b475c6","user":{"login":"glittershark","id":1481027,"avatar_url":"https://avatars.githubusercontent.com/u/1481027?v=2","gravatar_id":"4ad4b23dfdc9b5e3c404d74c2f32718f","url":"https://api.github.com/users/glittershark","html_url":"https://github.com/glittershark","followers_url":"https://api.github.com/users/glittershark/followers","following_url":"https://api.github.com/users/glittershark/following{/other_user}","gists_url":"https://api.github.com/users/glittershark/gists{/gist_id}","starred_url":"https://api.github.com/users/glittershark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittershark/subscriptions","organizations_url":"https://api.github.com/users/glittershark/orgs","repos_url":"https://api.github.com/users/glittershark/repos","events_url":"https://api.github.com/users/glittershark/events{/privacy}","received_events_url":"https://api.github.com/users/glittershark/received_events","type":"User","site_admin":false},"repo":{"id":23074843,"name":"react-rails","full_name":"glittershark/react-rails","owner":{"login":"glittershark","id":1481027,"avatar_url":"https://avatars.githubusercontent.com/u/1481027?v=2","gravatar_id":"4ad4b23dfdc9b5e3c404d74c2f32718f","url":"https://api.github.com/users/glittershark","html_url":"https://github.com/glittershark","followers_url":"https://api.github.com/users/glittershark/followers","following_url":"https://api.github.com/users/glittershark/following{/other_user}","gists_url":"https://api.github.com/users/glittershark/gists{/gist_id}","starred_url":"https://api.github.com/users/glittershark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittershark/subscriptions","organizations_url":"https://api.github.com/users/glittershark/orgs","repos_url":"https://api.github.com/users/glittershark/repos","events_url":"https://api.github.com/users/glittershark/events{/privacy}","received_events_url":"https://api.github.com/users/glittershark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glittershark/react-rails","description":"Ruby gem for automatically transforming JSX and using React in Rails.","fork":true,"url":"https://api.github.com/repos/glittershark/react-rails","forks_url":"https://api.github.com/repos/glittershark/react-rails/forks","keys_url":"https://api.github.com/repos/glittershark/react-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glittershark/react-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glittershark/react-rails/teams","hooks_url":"https://api.github.com/repos/glittershark/react-rails/hooks","issue_events_url":"https://api.github.com/repos/glittershark/react-rails/issues/events{/number}","events_url":"https://api.github.com/repos/glittershark/react-rails/events","assignees_url":"https://api.github.com/repos/glittershark/react-rails/assignees{/user}","branches_url":"https://api.github.com/repos/glittershark/react-rails/branches{/branch}","tags_url":"https://api.github.com/repos/glittershark/react-rails/tags","blobs_url":"https://api.github.com/repos/glittershark/react-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glittershark/react-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glittershark/react-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/glittershark/react-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glittershark/react-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/glittershark/react-rails/languages","stargazers_url":"https://api.github.com/repos/glittershark/react-rails/stargazers","contributors_url":"https://api.github.com/repos/glittershark/react-rails/contributors","subscribers_url":"https://api.github.com/repos/glittershark/react-rails/subscribers","subscription_url":"https://api.github.com/repos/glittershark/react-rails/subscription","commits_url":"https://api.github.com/repos/glittershark/react-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/glittershark/react-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/glittershark/react-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/glittershark/react-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/glittershark/react-rails/contents/{+path}","compare_url":"https://api.github.com/repos/glittershark/react-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glittershark/react-rails/merges","archive_url":"https://api.github.com/repos/glittershark/react-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glittershark/react-rails/downloads","issues_url":"https://api.github.com/repos/glittershark/react-rails/issues{/number}","pulls_url":"https://api.github.com/repos/glittershark/react-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/glittershark/react-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/glittershark/react-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glittershark/react-rails/labels{/name}","releases_url":"https://api.github.com/repos/glittershark/react-rails/releases{/id}","created_at":"2014-08-18T14:44:26Z","updated_at":"2014-08-18T02:35:05Z","pushed_at":"2014-08-18T17:22:29Z","git_url":"git://github.com/glittershark/react-rails.git","ssh_url":"git@github.com:glittershark/react-rails.git","clone_url":"https://github.com/glittershark/react-rails.git","svn_url":"https://github.com/glittershark/react-rails","homepage":null,"size":1436,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glittershark/react-rails/pulls/1"},"html":{"href":"https://github.com/glittershark/react-rails/pull/1"},"issue":{"href":"https://api.github.com/repos/glittershark/react-rails/issues/1"},"comments":{"href":"https://api.github.com/repos/glittershark/react-rails/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/glittershark/react-rails/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/glittershark/react-rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/glittershark/react-rails/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/glittershark/react-rails/statuses/743dc772c9fcf9599959bb71c1846d36afbe8264"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":1,"changed_files":1}}