{"action":"created","comment":{"url":"https://api.github.com/repos/juanrb/startup/pulls/comments/51252140","id":51252140,"diff_hunk":"@@ -0,0 +1,92 @@\n+var extend =  function extend(childClass, parentClass) {\n+  var copyOfParent = Object.create(parentClass.prototype);\n+  copyOfParent.constructor = childClass;\n+  childClass.prototype = copyOfParent;  \n+};\n+\n+var Observable = function () {\n+    /* properties */\n+  this.observers = [];\n+};\n+Observable.prototype = {\n+  constructor: Observable,\n+\n+  /* Methods */\n+  addObserver: function (observer) {\n+    this.observers.push(observer);\n+    return this;\n+  },\n+  notify: function (event) {\n+    var len = this.observers.length;\n+    for (var i = 0; i < len; i++) {\n+      this.observers[i].fireEvent(event);\n+    }\n+  }\n+};\n+\n+var Track = function () {\n+  Observable.call(this);\n+  /* Properties */\n+  this.artist = '';\n+  this.duration = 0;\n+  this.title = '';\n+};\n+\n+extend(Track, Observable);\n+\n+Track.prototype.get = function (key) {\n+  if(typeof this[key] !== 'undefined') {\n+    return this[key];\n+  } else {\n+    console.log('Undefined property');\n+  }\n+};\n+Track.prototype.play = function () {\n+  console.log('Now Playing: ' + this.title);\n+  this.notify('playing');\n+  return this;\n+};\n+Track.prototype.set = function (key, value) {\n+  if(typeof this[key] !== 'undefined') {\n+    this[key] = value;\n+  } else {\n+    console.log('Undefined property');\n+  }\n+  return this;","path":"02-oop-inheritance/exercises-1-to-6-reviewed.js","position":55,"original_position":55,"commit_id":"a05611688f7ff50df1c2824ecde5c0f6bbe09696","original_commit_id":"a05611688f7ff50df1c2824ecde5c0f6bbe09696","user":{"login":"troianoandres","id":8448246,"avatar_url":"https://avatars.githubusercontent.com/u/8448246?v=3","gravatar_id":"","url":"https://api.github.com/users/troianoandres","html_url":"https://github.com/troianoandres","followers_url":"https://api.github.com/users/troianoandres/followers","following_url":"https://api.github.com/users/troianoandres/following{/other_user}","gists_url":"https://api.github.com/users/troianoandres/gists{/gist_id}","starred_url":"https://api.github.com/users/troianoandres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troianoandres/subscriptions","organizations_url":"https://api.github.com/users/troianoandres/orgs","repos_url":"https://api.github.com/users/troianoandres/repos","events_url":"https://api.github.com/users/troianoandres/events{/privacy}","received_events_url":"https://api.github.com/users/troianoandres/received_events","type":"User","site_admin":false},"body":"Same here is not necessary to return this into all the functions, return only what needs to be returned.","created_at":"2016-01-29T11:40:15Z","updated_at":"2016-01-29T11:40:15Z","html_url":"https://github.com/juanrb/startup/pull/2#discussion_r51252140","pull_request_url":"https://api.github.com/repos/juanrb/startup/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/juanrb/startup/pulls/comments/51252140"},"html":{"href":"https://github.com/juanrb/startup/pull/2#discussion_r51252140"},"pull_request":{"href":"https://api.github.com/repos/juanrb/startup/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/juanrb/startup/pulls/2","id":56795250,"html_url":"https://github.com/juanrb/startup/pull/2","diff_url":"https://github.com/juanrb/startup/pull/2.diff","patch_url":"https://github.com/juanrb/startup/pull/2.patch","issue_url":"https://api.github.com/repos/juanrb/startup/issues/2","number":2,"state":"open","locked":false,"title":"Topic2","user":{"login":"juanrb","id":5077622,"avatar_url":"https://avatars.githubusercontent.com/u/5077622?v=3","gravatar_id":"","url":"https://api.github.com/users/juanrb","html_url":"https://github.com/juanrb","followers_url":"https://api.github.com/users/juanrb/followers","following_url":"https://api.github.com/users/juanrb/following{/other_user}","gists_url":"https://api.github.com/users/juanrb/gists{/gist_id}","starred_url":"https://api.github.com/users/juanrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanrb/subscriptions","organizations_url":"https://api.github.com/users/juanrb/orgs","repos_url":"https://api.github.com/users/juanrb/repos","events_url":"https://api.github.com/users/juanrb/events{/privacy}","received_events_url":"https://api.github.com/users/juanrb/received_events","type":"User","site_admin":false},"body":"Topic 2 finished - waiting for peer review","created_at":"2016-01-21T19:16:18Z","updated_at":"2016-01-29T11:40:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba19c5e690aefbaf8906230cbdde9b26dd7f274c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/juanrb/startup/pulls/2/commits","review_comments_url":"https://api.github.com/repos/juanrb/startup/pulls/2/comments","review_comment_url":"https://api.github.com/repos/juanrb/startup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juanrb/startup/issues/2/comments","statuses_url":"https://api.github.com/repos/juanrb/startup/statuses/a05611688f7ff50df1c2824ecde5c0f6bbe09696","head":{"label":"juanrb:Topic2","ref":"Topic2","sha":"a05611688f7ff50df1c2824ecde5c0f6bbe09696","user":{"login":"juanrb","id":5077622,"avatar_url":"https://avatars.githubusercontent.com/u/5077622?v=3","gravatar_id":"","url":"https://api.github.com/users/juanrb","html_url":"https://github.com/juanrb","followers_url":"https://api.github.com/users/juanrb/followers","following_url":"https://api.github.com/users/juanrb/following{/other_user}","gists_url":"https://api.github.com/users/juanrb/gists{/gist_id}","starred_url":"https://api.github.com/users/juanrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanrb/subscriptions","organizations_url":"https://api.github.com/users/juanrb/orgs","repos_url":"https://api.github.com/users/juanrb/repos","events_url":"https://api.github.com/users/juanrb/events{/privacy}","received_events_url":"https://api.github.com/users/juanrb/received_events","type":"User","site_admin":false},"repo":{"id":49340346,"name":"startup","full_name":"juanrb/startup","owner":{"login":"juanrb","id":5077622,"avatar_url":"https://avatars.githubusercontent.com/u/5077622?v=3","gravatar_id":"","url":"https://api.github.com/users/juanrb","html_url":"https://github.com/juanrb","followers_url":"https://api.github.com/users/juanrb/followers","following_url":"https://api.github.com/users/juanrb/following{/other_user}","gists_url":"https://api.github.com/users/juanrb/gists{/gist_id}","starred_url":"https://api.github.com/users/juanrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanrb/subscriptions","organizations_url":"https://api.github.com/users/juanrb/orgs","repos_url":"https://api.github.com/users/juanrb/repos","events_url":"https://api.github.com/users/juanrb/events{/privacy}","received_events_url":"https://api.github.com/users/juanrb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juanrb/startup","description":"Basic folder structure","fork":true,"url":"https://api.github.com/repos/juanrb/startup","forks_url":"https://api.github.com/repos/juanrb/startup/forks","keys_url":"https://api.github.com/repos/juanrb/startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juanrb/startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juanrb/startup/teams","hooks_url":"https://api.github.com/repos/juanrb/startup/hooks","issue_events_url":"https://api.github.com/repos/juanrb/startup/issues/events{/number}","events_url":"https://api.github.com/repos/juanrb/startup/events","assignees_url":"https://api.github.com/repos/juanrb/startup/assignees{/user}","branches_url":"https://api.github.com/repos/juanrb/startup/branches{/branch}","tags_url":"https://api.github.com/repos/juanrb/startup/tags","blobs_url":"https://api.github.com/repos/juanrb/startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juanrb/startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juanrb/startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/juanrb/startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juanrb/startup/statuses/{sha}","languages_url":"https://api.github.com/repos/juanrb/startup/languages","stargazers_url":"https://api.github.com/repos/juanrb/startup/stargazers","contributors_url":"https://api.github.com/repos/juanrb/startup/contributors","subscribers_url":"https://api.github.com/repos/juanrb/startup/subscribers","subscription_url":"https://api.github.com/repos/juanrb/startup/subscription","commits_url":"https://api.github.com/repos/juanrb/startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/juanrb/startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/juanrb/startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/juanrb/startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/juanrb/startup/contents/{+path}","compare_url":"https://api.github.com/repos/juanrb/startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juanrb/startup/merges","archive_url":"https://api.github.com/repos/juanrb/startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juanrb/startup/downloads","issues_url":"https://api.github.com/repos/juanrb/startup/issues{/number}","pulls_url":"https://api.github.com/repos/juanrb/startup/pulls{/number}","milestones_url":"https://api.github.com/repos/juanrb/startup/milestones{/number}","notifications_url":"https://api.github.com/repos/juanrb/startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juanrb/startup/labels{/name}","releases_url":"https://api.github.com/repos/juanrb/startup/releases{/id}","deployments_url":"https://api.github.com/repos/juanrb/startup/deployments","created_at":"2016-01-09T20:34:46Z","updated_at":"2016-01-13T23:42:03Z","pushed_at":"2016-01-28T22:27:06Z","git_url":"git://github.com/juanrb/startup.git","ssh_url":"git@github.com:juanrb/startup.git","clone_url":"https://github.com/juanrb/startup.git","svn_url":"https://github.com/juanrb/startup","homepage":null,"size":2068,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"juanrb:master","ref":"master","sha":"7dee20f415f613b6fdbc857b7038009ed5f001be","user":{"login":"juanrb","id":5077622,"avatar_url":"https://avatars.githubusercontent.com/u/5077622?v=3","gravatar_id":"","url":"https://api.github.com/users/juanrb","html_url":"https://github.com/juanrb","followers_url":"https://api.github.com/users/juanrb/followers","following_url":"https://api.github.com/users/juanrb/following{/other_user}","gists_url":"https://api.github.com/users/juanrb/gists{/gist_id}","starred_url":"https://api.github.com/users/juanrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanrb/subscriptions","organizations_url":"https://api.github.com/users/juanrb/orgs","repos_url":"https://api.github.com/users/juanrb/repos","events_url":"https://api.github.com/users/juanrb/events{/privacy}","received_events_url":"https://api.github.com/users/juanrb/received_events","type":"User","site_admin":false},"repo":{"id":49340346,"name":"startup","full_name":"juanrb/startup","owner":{"login":"juanrb","id":5077622,"avatar_url":"https://avatars.githubusercontent.com/u/5077622?v=3","gravatar_id":"","url":"https://api.github.com/users/juanrb","html_url":"https://github.com/juanrb","followers_url":"https://api.github.com/users/juanrb/followers","following_url":"https://api.github.com/users/juanrb/following{/other_user}","gists_url":"https://api.github.com/users/juanrb/gists{/gist_id}","starred_url":"https://api.github.com/users/juanrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanrb/subscriptions","organizations_url":"https://api.github.com/users/juanrb/orgs","repos_url":"https://api.github.com/users/juanrb/repos","events_url":"https://api.github.com/users/juanrb/events{/privacy}","received_events_url":"https://api.github.com/users/juanrb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juanrb/startup","description":"Basic folder structure","fork":true,"url":"https://api.github.com/repos/juanrb/startup","forks_url":"https://api.github.com/repos/juanrb/startup/forks","keys_url":"https://api.github.com/repos/juanrb/startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juanrb/startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juanrb/startup/teams","hooks_url":"https://api.github.com/repos/juanrb/startup/hooks","issue_events_url":"https://api.github.com/repos/juanrb/startup/issues/events{/number}","events_url":"https://api.github.com/repos/juanrb/startup/events","assignees_url":"https://api.github.com/repos/juanrb/startup/assignees{/user}","branches_url":"https://api.github.com/repos/juanrb/startup/branches{/branch}","tags_url":"https://api.github.com/repos/juanrb/startup/tags","blobs_url":"https://api.github.com/repos/juanrb/startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juanrb/startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juanrb/startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/juanrb/startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juanrb/startup/statuses/{sha}","languages_url":"https://api.github.com/repos/juanrb/startup/languages","stargazers_url":"https://api.github.com/repos/juanrb/startup/stargazers","contributors_url":"https://api.github.com/repos/juanrb/startup/contributors","subscribers_url":"https://api.github.com/repos/juanrb/startup/subscribers","subscription_url":"https://api.github.com/repos/juanrb/startup/subscription","commits_url":"https://api.github.com/repos/juanrb/startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/juanrb/startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/juanrb/startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/juanrb/startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/juanrb/startup/contents/{+path}","compare_url":"https://api.github.com/repos/juanrb/startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juanrb/startup/merges","archive_url":"https://api.github.com/repos/juanrb/startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juanrb/startup/downloads","issues_url":"https://api.github.com/repos/juanrb/startup/issues{/number}","pulls_url":"https://api.github.com/repos/juanrb/startup/pulls{/number}","milestones_url":"https://api.github.com/repos/juanrb/startup/milestones{/number}","notifications_url":"https://api.github.com/repos/juanrb/startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juanrb/startup/labels{/name}","releases_url":"https://api.github.com/repos/juanrb/startup/releases{/id}","deployments_url":"https://api.github.com/repos/juanrb/startup/deployments","created_at":"2016-01-09T20:34:46Z","updated_at":"2016-01-13T23:42:03Z","pushed_at":"2016-01-28T22:27:06Z","git_url":"git://github.com/juanrb/startup.git","ssh_url":"git@github.com:juanrb/startup.git","clone_url":"https://github.com/juanrb/startup.git","svn_url":"https://github.com/juanrb/startup","homepage":null,"size":2068,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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/juanrb/startup/pulls/2"},"html":{"href":"https://github.com/juanrb/startup/pull/2"},"issue":{"href":"https://api.github.com/repos/juanrb/startup/issues/2"},"comments":{"href":"https://api.github.com/repos/juanrb/startup/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/juanrb/startup/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/juanrb/startup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juanrb/startup/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/juanrb/startup/statuses/a05611688f7ff50df1c2824ecde5c0f6bbe09696"}}}}