{"action":"created","comment":{"url":"https://api.github.com/repos/fxos/customizer/pulls/comments/27408798","id":27408798,"diff_hunk":"@@ -137,8 +137,9 @@ proto.watchChanges = function() {\n     // root element having the class \"fxos-customizer-main-view\"\n     for (var i = mutations.length - 1; i >= 0; i--) {\n       if (!this._shadowContains(mutations[i].target)) {\n-        console.log(mutations[i].target.outerHTML);\n+        var selectedNode = this.gaiaDomTree.selectedNode;\n         this.gaiaDomTree.render();\n+        this.gaiaDomTree.select(selectedNode);","path":"app/js/elements/fxos-customizer.js","position":7,"original_position":7,"commit_id":"89c26fd7fcfeaa2f627c3e31040bd7cf9967698a","original_commit_id":"89c26fd7fcfeaa2f627c3e31040bd7cf9967698a","user":{"login":"DouglasSherk","id":1310914,"avatar_url":"https://avatars.githubusercontent.com/u/1310914?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasSherk","html_url":"https://github.com/DouglasSherk","followers_url":"https://api.github.com/users/DouglasSherk/followers","following_url":"https://api.github.com/users/DouglasSherk/following{/other_user}","gists_url":"https://api.github.com/users/DouglasSherk/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasSherk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasSherk/subscriptions","organizations_url":"https://api.github.com/users/DouglasSherk/orgs","repos_url":"https://api.github.com/users/DouglasSherk/repos","events_url":"https://api.github.com/users/DouglasSherk/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasSherk/received_events","type":"User","site_admin":false},"body":"Use ```this.select(selectedNode)``` instead.","created_at":"2015-03-30T16:57:00Z","updated_at":"2015-03-30T16:57:00Z","html_url":"https://github.com/fxos/customizer/pull/18#discussion_r27408798","pull_request_url":"https://api.github.com/repos/fxos/customizer/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/fxos/customizer/pulls/comments/27408798"},"html":{"href":"https://github.com/fxos/customizer/pull/18#discussion_r27408798"},"pull_request":{"href":"https://api.github.com/repos/fxos/customizer/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/fxos/customizer/pulls/18","id":32243133,"html_url":"https://github.com/fxos/customizer/pull/18","diff_url":"https://github.com/fxos/customizer/pull/18.diff","patch_url":"https://github.com/fxos/customizer/pull/18.patch","issue_url":"https://api.github.com/repos/fxos/customizer/issues/18","number":18,"state":"open","locked":false,"title":"Bug 1149192 - [Customizer] DOM tree loses selection when DOM changes","user":{"login":"justindarc","id":207595,"avatar_url":"https://avatars.githubusercontent.com/u/207595?v=3","gravatar_id":"","url":"https://api.github.com/users/justindarc","html_url":"https://github.com/justindarc","followers_url":"https://api.github.com/users/justindarc/followers","following_url":"https://api.github.com/users/justindarc/following{/other_user}","gists_url":"https://api.github.com/users/justindarc/gists{/gist_id}","starred_url":"https://api.github.com/users/justindarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justindarc/subscriptions","organizations_url":"https://api.github.com/users/justindarc/orgs","repos_url":"https://api.github.com/users/justindarc/repos","events_url":"https://api.github.com/users/justindarc/events{/privacy}","received_events_url":"https://api.github.com/users/justindarc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-30T16:28:16Z","updated_at":"2015-03-30T16:57:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e59f426d51e128ce517d72176530f2d48037a79c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fxos/customizer/pulls/18/commits","review_comments_url":"https://api.github.com/repos/fxos/customizer/pulls/18/comments","review_comment_url":"https://api.github.com/repos/fxos/customizer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxos/customizer/issues/18/comments","statuses_url":"https://api.github.com/repos/fxos/customizer/statuses/89c26fd7fcfeaa2f627c3e31040bd7cf9967698a","head":{"label":"fxos:bug1149192","ref":"bug1149192","sha":"89c26fd7fcfeaa2f627c3e31040bd7cf9967698a","user":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"repo":{"id":28850112,"name":"customizer","full_name":"fxos/customizer","owner":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxos/customizer","description":"An addon for FirefoxOS which builds customizes application interfaces.","fork":false,"url":"https://api.github.com/repos/fxos/customizer","forks_url":"https://api.github.com/repos/fxos/customizer/forks","keys_url":"https://api.github.com/repos/fxos/customizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxos/customizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxos/customizer/teams","hooks_url":"https://api.github.com/repos/fxos/customizer/hooks","issue_events_url":"https://api.github.com/repos/fxos/customizer/issues/events{/number}","events_url":"https://api.github.com/repos/fxos/customizer/events","assignees_url":"https://api.github.com/repos/fxos/customizer/assignees{/user}","branches_url":"https://api.github.com/repos/fxos/customizer/branches{/branch}","tags_url":"https://api.github.com/repos/fxos/customizer/tags","blobs_url":"https://api.github.com/repos/fxos/customizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxos/customizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxos/customizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxos/customizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxos/customizer/statuses/{sha}","languages_url":"https://api.github.com/repos/fxos/customizer/languages","stargazers_url":"https://api.github.com/repos/fxos/customizer/stargazers","contributors_url":"https://api.github.com/repos/fxos/customizer/contributors","subscribers_url":"https://api.github.com/repos/fxos/customizer/subscribers","subscription_url":"https://api.github.com/repos/fxos/customizer/subscription","commits_url":"https://api.github.com/repos/fxos/customizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxos/customizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxos/customizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxos/customizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxos/customizer/contents/{+path}","compare_url":"https://api.github.com/repos/fxos/customizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxos/customizer/merges","archive_url":"https://api.github.com/repos/fxos/customizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxos/customizer/downloads","issues_url":"https://api.github.com/repos/fxos/customizer/issues{/number}","pulls_url":"https://api.github.com/repos/fxos/customizer/pulls{/number}","milestones_url":"https://api.github.com/repos/fxos/customizer/milestones{/number}","notifications_url":"https://api.github.com/repos/fxos/customizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxos/customizer/labels{/name}","releases_url":"https://api.github.com/repos/fxos/customizer/releases{/id}","created_at":"2015-01-06T06:29:49Z","updated_at":"2015-03-27T17:51:17Z","pushed_at":"2015-03-30T16:33:28Z","git_url":"git://github.com/fxos/customizer.git","ssh_url":"git@github.com:fxos/customizer.git","clone_url":"https://github.com/fxos/customizer.git","svn_url":"https://github.com/fxos/customizer","homepage":null,"size":2040,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"fxos:master","ref":"master","sha":"d8330652c982d794b1938ca726d358998427a904","user":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"repo":{"id":28850112,"name":"customizer","full_name":"fxos/customizer","owner":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxos/customizer","description":"An addon for FirefoxOS which builds customizes application interfaces.","fork":false,"url":"https://api.github.com/repos/fxos/customizer","forks_url":"https://api.github.com/repos/fxos/customizer/forks","keys_url":"https://api.github.com/repos/fxos/customizer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxos/customizer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxos/customizer/teams","hooks_url":"https://api.github.com/repos/fxos/customizer/hooks","issue_events_url":"https://api.github.com/repos/fxos/customizer/issues/events{/number}","events_url":"https://api.github.com/repos/fxos/customizer/events","assignees_url":"https://api.github.com/repos/fxos/customizer/assignees{/user}","branches_url":"https://api.github.com/repos/fxos/customizer/branches{/branch}","tags_url":"https://api.github.com/repos/fxos/customizer/tags","blobs_url":"https://api.github.com/repos/fxos/customizer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxos/customizer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxos/customizer/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxos/customizer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxos/customizer/statuses/{sha}","languages_url":"https://api.github.com/repos/fxos/customizer/languages","stargazers_url":"https://api.github.com/repos/fxos/customizer/stargazers","contributors_url":"https://api.github.com/repos/fxos/customizer/contributors","subscribers_url":"https://api.github.com/repos/fxos/customizer/subscribers","subscription_url":"https://api.github.com/repos/fxos/customizer/subscription","commits_url":"https://api.github.com/repos/fxos/customizer/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxos/customizer/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxos/customizer/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxos/customizer/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxos/customizer/contents/{+path}","compare_url":"https://api.github.com/repos/fxos/customizer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxos/customizer/merges","archive_url":"https://api.github.com/repos/fxos/customizer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxos/customizer/downloads","issues_url":"https://api.github.com/repos/fxos/customizer/issues{/number}","pulls_url":"https://api.github.com/repos/fxos/customizer/pulls{/number}","milestones_url":"https://api.github.com/repos/fxos/customizer/milestones{/number}","notifications_url":"https://api.github.com/repos/fxos/customizer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxos/customizer/labels{/name}","releases_url":"https://api.github.com/repos/fxos/customizer/releases{/id}","created_at":"2015-01-06T06:29:49Z","updated_at":"2015-03-27T17:51:17Z","pushed_at":"2015-03-30T16:33:28Z","git_url":"git://github.com/fxos/customizer.git","ssh_url":"git@github.com:fxos/customizer.git","clone_url":"https://github.com/fxos/customizer.git","svn_url":"https://github.com/fxos/customizer","homepage":null,"size":2040,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxos/customizer/pulls/18"},"html":{"href":"https://github.com/fxos/customizer/pull/18"},"issue":{"href":"https://api.github.com/repos/fxos/customizer/issues/18"},"comments":{"href":"https://api.github.com/repos/fxos/customizer/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/fxos/customizer/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/fxos/customizer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxos/customizer/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/fxos/customizer/statuses/89c26fd7fcfeaa2f627c3e31040bd7cf9967698a"}}}}