{"action":"created","comment":{"url":"https://api.github.com/repos/emberjs/ember-inspector/pulls/comments/32124460","id":32124460,"diff_hunk":"@@ -149,12 +145,11 @@ export default Ember.Object.extend({\n     Called when the connection is set up.\n     Flushes the pending messages.\n   */\n-  onConnectionReady: function() {\n+  onConnectionReady() {\n     // Flush pending messages\n-    var self = this;\n-    var messages = this.get('_pendingMessages');\n-    messages.forEach(function(options) {\n-      self.sendMessage(options);\n+    const messages = this.get('_pendingMessages');\n+    messages.forEach((options) => {\n+      this.sendMessage(options);\n     });","path":"ember_debug/adapters/basic.js","position":143,"original_position":143,"commit_id":"8820c43031d321a2ccae7170c1fbdc371cca7555","original_commit_id":"8820c43031d321a2ccae7170c1fbdc371cca7555","user":{"login":"Patsy-issa","id":4568519,"avatar_url":"https://avatars.githubusercontent.com/u/4568519?v=3","gravatar_id":"","url":"https://api.github.com/users/Patsy-issa","html_url":"https://github.com/Patsy-issa","followers_url":"https://api.github.com/users/Patsy-issa/followers","following_url":"https://api.github.com/users/Patsy-issa/following{/other_user}","gists_url":"https://api.github.com/users/Patsy-issa/gists{/gist_id}","starred_url":"https://api.github.com/users/Patsy-issa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patsy-issa/subscriptions","organizations_url":"https://api.github.com/users/Patsy-issa/orgs","repos_url":"https://api.github.com/users/Patsy-issa/repos","events_url":"https://api.github.com/users/Patsy-issa/events{/privacy}","received_events_url":"https://api.github.com/users/Patsy-issa/received_events","type":"User","site_admin":false},"body":"```javascript\r\nmessages.forEach(options => this.sendMessage(options));\r\n```","created_at":"2015-06-10T14:43:10Z","updated_at":"2015-06-10T14:43:10Z","html_url":"https://github.com/emberjs/ember-inspector/pull/387#discussion_r32124460","pull_request_url":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387","_links":{"self":{"href":"https://api.github.com/repos/emberjs/ember-inspector/pulls/comments/32124460"},"html":{"href":"https://github.com/emberjs/ember-inspector/pull/387#discussion_r32124460"},"pull_request":{"href":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387"}}},"pull_request":{"url":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387","id":37166083,"html_url":"https://github.com/emberjs/ember-inspector/pull/387","diff_url":"https://github.com/emberjs/ember-inspector/pull/387.diff","patch_url":"https://github.com/emberjs/ember-inspector/pull/387.patch","issue_url":"https://api.github.com/repos/emberjs/ember-inspector/issues/387","number":387,"state":"open","locked":false,"title":"- Refactor ember-debug to use ES6.","user":{"login":"Mawaheb","id":3714892,"avatar_url":"https://avatars.githubusercontent.com/u/3714892?v=3","gravatar_id":"","url":"https://api.github.com/users/Mawaheb","html_url":"https://github.com/Mawaheb","followers_url":"https://api.github.com/users/Mawaheb/followers","following_url":"https://api.github.com/users/Mawaheb/following{/other_user}","gists_url":"https://api.github.com/users/Mawaheb/gists{/gist_id}","starred_url":"https://api.github.com/users/Mawaheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mawaheb/subscriptions","organizations_url":"https://api.github.com/users/Mawaheb/orgs","repos_url":"https://api.github.com/users/Mawaheb/repos","events_url":"https://api.github.com/users/Mawaheb/events{/privacy}","received_events_url":"https://api.github.com/users/Mawaheb/received_events","type":"User","site_admin":false},"body":"OK, I believe this is ready, But, there are a few problems that I faced:\r\n\r\n- I couldn't refactor the contents of `/vendor`, when I tried, I got an error \"Can't use block-scoped let, const out of restricted mode.\"\r\n\r\n- Because arrow functions should always be anonymous, I couldn't/figure out how to refactor [this one](https://github.com/emberjs/ember-inspector/blob/master/ember_debug/view-debug.js#L192) to use `this` instead of `self`\r\nsimilar problem with [this one](https://github.com/emberjs/ember-inspector/blob/master/ember_debug/deprecation-debug.js#L177)\r\n\r\n\r\nAs always, Any suggestions, comments, notes, things to be changed or feedback is always appreciated","created_at":"2015-06-08T15:36:05Z","updated_at":"2015-06-10T14:43:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e46f7be6060fb1fc6badc4bd4e1e9f3089a4d426","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387/commits","review_comments_url":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387/comments","review_comment_url":"https://api.github.com/repos/emberjs/ember-inspector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emberjs/ember-inspector/issues/387/comments","statuses_url":"https://api.github.com/repos/emberjs/ember-inspector/statuses/8820c43031d321a2ccae7170c1fbdc371cca7555","head":{"label":"Mawaheb:refactorEmberDebug","ref":"refactorEmberDebug","sha":"8820c43031d321a2ccae7170c1fbdc371cca7555","user":{"login":"Mawaheb","id":3714892,"avatar_url":"https://avatars.githubusercontent.com/u/3714892?v=3","gravatar_id":"","url":"https://api.github.com/users/Mawaheb","html_url":"https://github.com/Mawaheb","followers_url":"https://api.github.com/users/Mawaheb/followers","following_url":"https://api.github.com/users/Mawaheb/following{/other_user}","gists_url":"https://api.github.com/users/Mawaheb/gists{/gist_id}","starred_url":"https://api.github.com/users/Mawaheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mawaheb/subscriptions","organizations_url":"https://api.github.com/users/Mawaheb/orgs","repos_url":"https://api.github.com/users/Mawaheb/repos","events_url":"https://api.github.com/users/Mawaheb/events{/privacy}","received_events_url":"https://api.github.com/users/Mawaheb/received_events","type":"User","site_admin":false},"repo":{"id":35880073,"name":"ember-inspector","full_name":"Mawaheb/ember-inspector","owner":{"login":"Mawaheb","id":3714892,"avatar_url":"https://avatars.githubusercontent.com/u/3714892?v=3","gravatar_id":"","url":"https://api.github.com/users/Mawaheb","html_url":"https://github.com/Mawaheb","followers_url":"https://api.github.com/users/Mawaheb/followers","following_url":"https://api.github.com/users/Mawaheb/following{/other_user}","gists_url":"https://api.github.com/users/Mawaheb/gists{/gist_id}","starred_url":"https://api.github.com/users/Mawaheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mawaheb/subscriptions","organizations_url":"https://api.github.com/users/Mawaheb/orgs","repos_url":"https://api.github.com/users/Mawaheb/repos","events_url":"https://api.github.com/users/Mawaheb/events{/privacy}","received_events_url":"https://api.github.com/users/Mawaheb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mawaheb/ember-inspector","description":"","fork":true,"url":"https://api.github.com/repos/Mawaheb/ember-inspector","forks_url":"https://api.github.com/repos/Mawaheb/ember-inspector/forks","keys_url":"https://api.github.com/repos/Mawaheb/ember-inspector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mawaheb/ember-inspector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mawaheb/ember-inspector/teams","hooks_url":"https://api.github.com/repos/Mawaheb/ember-inspector/hooks","issue_events_url":"https://api.github.com/repos/Mawaheb/ember-inspector/issues/events{/number}","events_url":"https://api.github.com/repos/Mawaheb/ember-inspector/events","assignees_url":"https://api.github.com/repos/Mawaheb/ember-inspector/assignees{/user}","branches_url":"https://api.github.com/repos/Mawaheb/ember-inspector/branches{/branch}","tags_url":"https://api.github.com/repos/Mawaheb/ember-inspector/tags","blobs_url":"https://api.github.com/repos/Mawaheb/ember-inspector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mawaheb/ember-inspector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mawaheb/ember-inspector/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mawaheb/ember-inspector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mawaheb/ember-inspector/statuses/{sha}","languages_url":"https://api.github.com/repos/Mawaheb/ember-inspector/languages","stargazers_url":"https://api.github.com/repos/Mawaheb/ember-inspector/stargazers","contributors_url":"https://api.github.com/repos/Mawaheb/ember-inspector/contributors","subscribers_url":"https://api.github.com/repos/Mawaheb/ember-inspector/subscribers","subscription_url":"https://api.github.com/repos/Mawaheb/ember-inspector/subscription","commits_url":"https://api.github.com/repos/Mawaheb/ember-inspector/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mawaheb/ember-inspector/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mawaheb/ember-inspector/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mawaheb/ember-inspector/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mawaheb/ember-inspector/contents/{+path}","compare_url":"https://api.github.com/repos/Mawaheb/ember-inspector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mawaheb/ember-inspector/merges","archive_url":"https://api.github.com/repos/Mawaheb/ember-inspector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mawaheb/ember-inspector/downloads","issues_url":"https://api.github.com/repos/Mawaheb/ember-inspector/issues{/number}","pulls_url":"https://api.github.com/repos/Mawaheb/ember-inspector/pulls{/number}","milestones_url":"https://api.github.com/repos/Mawaheb/ember-inspector/milestones{/number}","notifications_url":"https://api.github.com/repos/Mawaheb/ember-inspector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mawaheb/ember-inspector/labels{/name}","releases_url":"https://api.github.com/repos/Mawaheb/ember-inspector/releases{/id}","created_at":"2015-05-19T12:14:52Z","updated_at":"2015-05-19T12:55:53Z","pushed_at":"2015-06-09T13:00:49Z","git_url":"git://github.com/Mawaheb/ember-inspector.git","ssh_url":"git@github.com:Mawaheb/ember-inspector.git","clone_url":"https://github.com/Mawaheb/ember-inspector.git","svn_url":"https://github.com/Mawaheb/ember-inspector","homepage":"","size":3160,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"emberjs:master","ref":"master","sha":"1eafd6d2203aece91a47672c0d3fba675dc54533","user":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"repo":{"id":7876204,"name":"ember-inspector","full_name":"emberjs/ember-inspector","owner":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emberjs/ember-inspector","description":"","fork":false,"url":"https://api.github.com/repos/emberjs/ember-inspector","forks_url":"https://api.github.com/repos/emberjs/ember-inspector/forks","keys_url":"https://api.github.com/repos/emberjs/ember-inspector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emberjs/ember-inspector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emberjs/ember-inspector/teams","hooks_url":"https://api.github.com/repos/emberjs/ember-inspector/hooks","issue_events_url":"https://api.github.com/repos/emberjs/ember-inspector/issues/events{/number}","events_url":"https://api.github.com/repos/emberjs/ember-inspector/events","assignees_url":"https://api.github.com/repos/emberjs/ember-inspector/assignees{/user}","branches_url":"https://api.github.com/repos/emberjs/ember-inspector/branches{/branch}","tags_url":"https://api.github.com/repos/emberjs/ember-inspector/tags","blobs_url":"https://api.github.com/repos/emberjs/ember-inspector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emberjs/ember-inspector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emberjs/ember-inspector/git/refs{/sha}","trees_url":"https://api.github.com/repos/emberjs/ember-inspector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emberjs/ember-inspector/statuses/{sha}","languages_url":"https://api.github.com/repos/emberjs/ember-inspector/languages","stargazers_url":"https://api.github.com/repos/emberjs/ember-inspector/stargazers","contributors_url":"https://api.github.com/repos/emberjs/ember-inspector/contributors","subscribers_url":"https://api.github.com/repos/emberjs/ember-inspector/subscribers","subscription_url":"https://api.github.com/repos/emberjs/ember-inspector/subscription","commits_url":"https://api.github.com/repos/emberjs/ember-inspector/commits{/sha}","git_commits_url":"https://api.github.com/repos/emberjs/ember-inspector/git/commits{/sha}","comments_url":"https://api.github.com/repos/emberjs/ember-inspector/comments{/number}","issue_comment_url":"https://api.github.com/repos/emberjs/ember-inspector/issues/comments{/number}","contents_url":"https://api.github.com/repos/emberjs/ember-inspector/contents/{+path}","compare_url":"https://api.github.com/repos/emberjs/ember-inspector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emberjs/ember-inspector/merges","archive_url":"https://api.github.com/repos/emberjs/ember-inspector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emberjs/ember-inspector/downloads","issues_url":"https://api.github.com/repos/emberjs/ember-inspector/issues{/number}","pulls_url":"https://api.github.com/repos/emberjs/ember-inspector/pulls{/number}","milestones_url":"https://api.github.com/repos/emberjs/ember-inspector/milestones{/number}","notifications_url":"https://api.github.com/repos/emberjs/ember-inspector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emberjs/ember-inspector/labels{/name}","releases_url":"https://api.github.com/repos/emberjs/ember-inspector/releases{/id}","created_at":"2013-01-28T18:36:15Z","updated_at":"2015-06-10T10:06:34Z","pushed_at":"2015-06-08T15:55:03Z","git_url":"git://github.com/emberjs/ember-inspector.git","ssh_url":"git@github.com:emberjs/ember-inspector.git","clone_url":"https://github.com/emberjs/ember-inspector.git","svn_url":"https://github.com/emberjs/ember-inspector","homepage":null,"size":5108,"stargazers_count":660,"watchers_count":660,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":135,"mirror_url":null,"open_issues_count":90,"forks":135,"open_issues":90,"watchers":660,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387"},"html":{"href":"https://github.com/emberjs/ember-inspector/pull/387"},"issue":{"href":"https://api.github.com/repos/emberjs/ember-inspector/issues/387"},"comments":{"href":"https://api.github.com/repos/emberjs/ember-inspector/issues/387/comments"},"review_comments":{"href":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387/comments"},"review_comment":{"href":"https://api.github.com/repos/emberjs/ember-inspector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emberjs/ember-inspector/pulls/387/commits"},"statuses":{"href":"https://api.github.com/repos/emberjs/ember-inspector/statuses/8820c43031d321a2ccae7170c1fbdc371cca7555"}}}}