{"action":"created","comment":{"url":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/comments/29942729","id":29942729,"diff_hunk":"@@ -1 +1,64 @@\n // define your StockView here\n+\n+\n+// - `StockView`\n+//   - `model`: points to an instance of a Stock model.\n+//   - `render`: updates the HTML on the page to reflect the info of the associated stock model. The info is the price, companyName and totalValue.\n+//   - 'lookupSymbol': when the user enters a symbol, this should instantiate a new instance of a stock model and associate it with the `model` attribute of the view. It should then re-`render` the view.\n+//   - updateShares: when the user enters a number of shares, it should update the existing associated stock model, and then re-render the view\n+\n+\n+var StockView = function(){\n+\tthis.symbolButton = document.getElementById(\"new_stock_button\");\n+\tthis.symbolInput = document.getElementById(\"new_stock_text\");\n+\tthis.symbolButton = addEventListener(\"click\", this.createStock.bind(this));\n+\tthis.sharesButton = document.getElementById(\"shares_updater_button\");\n+\tthis.sharesInput = document.getElementById(\"shares_updater_text\");\n+\tthis.stocks = document.getElementId(\"stocks\")\n+}\n+\n+StockView.prototype = {\n+\tcreateStock: function(event){\n+\t\tthis.stock = new Stock(this.symbolInput.value);\n+\t\tconsole.log(this.stock);\n+\t\tthis.render;\n+\t}","path":"js/views/stock.js","position":25,"original_position":25,"commit_id":"601e2daaefc67003d0e53d7c71b84dd4d60f2e7d","original_commit_id":"601e2daaefc67003d0e53d7c71b84dd4d60f2e7d","user":{"login":"andrewsunglaekim","id":8976305,"avatar_url":"https://avatars.githubusercontent.com/u/8976305?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewsunglaekim","html_url":"https://github.com/andrewsunglaekim","followers_url":"https://api.github.com/users/andrewsunglaekim/followers","following_url":"https://api.github.com/users/andrewsunglaekim/following{/other_user}","gists_url":"https://api.github.com/users/andrewsunglaekim/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewsunglaekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewsunglaekim/subscriptions","organizations_url":"https://api.github.com/users/andrewsunglaekim/orgs","repos_url":"https://api.github.com/users/andrewsunglaekim/repos","events_url":"https://api.github.com/users/andrewsunglaekim/events{/privacy}","received_events_url":"https://api.github.com/users/andrewsunglaekim/received_events","type":"User","site_admin":false},"body":"cool, I like this portion, and this is kind of what i was talking about in your `application.js`","created_at":"2015-05-08T14:15:17Z","updated_at":"2015-05-08T14:15:17Z","html_url":"https://github.com/ga-dc/stock-tracker/pull/15#discussion_r29942729","pull_request_url":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/comments/29942729"},"html":{"href":"https://github.com/ga-dc/stock-tracker/pull/15#discussion_r29942729"},"pull_request":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15","id":34810191,"html_url":"https://github.com/ga-dc/stock-tracker/pull/15","diff_url":"https://github.com/ga-dc/stock-tracker/pull/15.diff","patch_url":"https://github.com/ga-dc/stock-tracker/pull/15.patch","issue_url":"https://api.github.com/repos/ga-dc/stock-tracker/issues/15","number":15,"state":"open","locked":false,"title":"hw w07d02","user":{"login":"mugshepherd","id":7784700,"avatar_url":"https://avatars.githubusercontent.com/u/7784700?v=3","gravatar_id":"","url":"https://api.github.com/users/mugshepherd","html_url":"https://github.com/mugshepherd","followers_url":"https://api.github.com/users/mugshepherd/followers","following_url":"https://api.github.com/users/mugshepherd/following{/other_user}","gists_url":"https://api.github.com/users/mugshepherd/gists{/gist_id}","starred_url":"https://api.github.com/users/mugshepherd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mugshepherd/subscriptions","organizations_url":"https://api.github.com/users/mugshepherd/orgs","repos_url":"https://api.github.com/users/mugshepherd/repos","events_url":"https://api.github.com/users/mugshepherd/events{/privacy}","received_events_url":"https://api.github.com/users/mugshepherd/received_events","type":"User","site_admin":false},"body":"completeness:  2\r\ncomprehension:  1.5\r\n\r\nI only got as far as I did thanks to assistance from other students and help from instructor AK.  I almost always understand what I'm reading when I look at the files and their structures, but am not able to create them myself - it's been very frustrating.  I would like more time to go over several examples of the different exercises to see how other people approached their problems, and then go from there and build my own solution.  I just haven't had time to do that as we keep moving ahead.  ","created_at":"2015-05-06T12:12:00Z","updated_at":"2015-05-08T14:15:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15/commits","review_comments_url":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15/comments","review_comment_url":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-dc/stock-tracker/issues/15/comments","statuses_url":"https://api.github.com/repos/ga-dc/stock-tracker/statuses/601e2daaefc67003d0e53d7c71b84dd4d60f2e7d","head":{"label":"mugshepherd:master","ref":"master","sha":"601e2daaefc67003d0e53d7c71b84dd4d60f2e7d","user":{"login":"mugshepherd","id":7784700,"avatar_url":"https://avatars.githubusercontent.com/u/7784700?v=3","gravatar_id":"","url":"https://api.github.com/users/mugshepherd","html_url":"https://github.com/mugshepherd","followers_url":"https://api.github.com/users/mugshepherd/followers","following_url":"https://api.github.com/users/mugshepherd/following{/other_user}","gists_url":"https://api.github.com/users/mugshepherd/gists{/gist_id}","starred_url":"https://api.github.com/users/mugshepherd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mugshepherd/subscriptions","organizations_url":"https://api.github.com/users/mugshepherd/orgs","repos_url":"https://api.github.com/users/mugshepherd/repos","events_url":"https://api.github.com/users/mugshepherd/events{/privacy}","received_events_url":"https://api.github.com/users/mugshepherd/received_events","type":"User","site_admin":false},"repo":{"id":35123067,"name":"stock-tracker","full_name":"mugshepherd/stock-tracker","owner":{"login":"mugshepherd","id":7784700,"avatar_url":"https://avatars.githubusercontent.com/u/7784700?v=3","gravatar_id":"","url":"https://api.github.com/users/mugshepherd","html_url":"https://github.com/mugshepherd","followers_url":"https://api.github.com/users/mugshepherd/followers","following_url":"https://api.github.com/users/mugshepherd/following{/other_user}","gists_url":"https://api.github.com/users/mugshepherd/gists{/gist_id}","starred_url":"https://api.github.com/users/mugshepherd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mugshepherd/subscriptions","organizations_url":"https://api.github.com/users/mugshepherd/orgs","repos_url":"https://api.github.com/users/mugshepherd/repos","events_url":"https://api.github.com/users/mugshepherd/events{/privacy}","received_events_url":"https://api.github.com/users/mugshepherd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mugshepherd/stock-tracker","description":"","fork":true,"url":"https://api.github.com/repos/mugshepherd/stock-tracker","forks_url":"https://api.github.com/repos/mugshepherd/stock-tracker/forks","keys_url":"https://api.github.com/repos/mugshepherd/stock-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mugshepherd/stock-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mugshepherd/stock-tracker/teams","hooks_url":"https://api.github.com/repos/mugshepherd/stock-tracker/hooks","issue_events_url":"https://api.github.com/repos/mugshepherd/stock-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/mugshepherd/stock-tracker/events","assignees_url":"https://api.github.com/repos/mugshepherd/stock-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/mugshepherd/stock-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/mugshepherd/stock-tracker/tags","blobs_url":"https://api.github.com/repos/mugshepherd/stock-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mugshepherd/stock-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mugshepherd/stock-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/mugshepherd/stock-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mugshepherd/stock-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/mugshepherd/stock-tracker/languages","stargazers_url":"https://api.github.com/repos/mugshepherd/stock-tracker/stargazers","contributors_url":"https://api.github.com/repos/mugshepherd/stock-tracker/contributors","subscribers_url":"https://api.github.com/repos/mugshepherd/stock-tracker/subscribers","subscription_url":"https://api.github.com/repos/mugshepherd/stock-tracker/subscription","commits_url":"https://api.github.com/repos/mugshepherd/stock-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/mugshepherd/stock-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/mugshepherd/stock-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/mugshepherd/stock-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/mugshepherd/stock-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/mugshepherd/stock-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mugshepherd/stock-tracker/merges","archive_url":"https://api.github.com/repos/mugshepherd/stock-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mugshepherd/stock-tracker/downloads","issues_url":"https://api.github.com/repos/mugshepherd/stock-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/mugshepherd/stock-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/mugshepherd/stock-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/mugshepherd/stock-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mugshepherd/stock-tracker/labels{/name}","releases_url":"https://api.github.com/repos/mugshepherd/stock-tracker/releases{/id}","created_at":"2015-05-05T20:45:54Z","updated_at":"2015-05-06T12:08:36Z","pushed_at":"2015-05-07T00:12:37Z","git_url":"git://github.com/mugshepherd/stock-tracker.git","ssh_url":"git@github.com:mugshepherd/stock-tracker.git","clone_url":"https://github.com/mugshepherd/stock-tracker.git","svn_url":"https://github.com/mugshepherd/stock-tracker","homepage":null,"size":1157,"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":"ga-dc:master","ref":"master","sha":"fda44f81f39469f84556c4da7df5252b8255b77b","user":{"login":"ga-dc","id":10747017,"avatar_url":"https://avatars.githubusercontent.com/u/10747017?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-dc","html_url":"https://github.com/ga-dc","followers_url":"https://api.github.com/users/ga-dc/followers","following_url":"https://api.github.com/users/ga-dc/following{/other_user}","gists_url":"https://api.github.com/users/ga-dc/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-dc/subscriptions","organizations_url":"https://api.github.com/users/ga-dc/orgs","repos_url":"https://api.github.com/users/ga-dc/repos","events_url":"https://api.github.com/users/ga-dc/events{/privacy}","received_events_url":"https://api.github.com/users/ga-dc/received_events","type":"Organization","site_admin":false},"repo":{"id":35071695,"name":"stock-tracker","full_name":"ga-dc/stock-tracker","owner":{"login":"ga-dc","id":10747017,"avatar_url":"https://avatars.githubusercontent.com/u/10747017?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-dc","html_url":"https://github.com/ga-dc","followers_url":"https://api.github.com/users/ga-dc/followers","following_url":"https://api.github.com/users/ga-dc/following{/other_user}","gists_url":"https://api.github.com/users/ga-dc/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-dc/subscriptions","organizations_url":"https://api.github.com/users/ga-dc/orgs","repos_url":"https://api.github.com/users/ga-dc/repos","events_url":"https://api.github.com/users/ga-dc/events{/privacy}","received_events_url":"https://api.github.com/users/ga-dc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-dc/stock-tracker","description":"","fork":false,"url":"https://api.github.com/repos/ga-dc/stock-tracker","forks_url":"https://api.github.com/repos/ga-dc/stock-tracker/forks","keys_url":"https://api.github.com/repos/ga-dc/stock-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-dc/stock-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-dc/stock-tracker/teams","hooks_url":"https://api.github.com/repos/ga-dc/stock-tracker/hooks","issue_events_url":"https://api.github.com/repos/ga-dc/stock-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/ga-dc/stock-tracker/events","assignees_url":"https://api.github.com/repos/ga-dc/stock-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/ga-dc/stock-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/ga-dc/stock-tracker/tags","blobs_url":"https://api.github.com/repos/ga-dc/stock-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-dc/stock-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-dc/stock-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-dc/stock-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-dc/stock-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-dc/stock-tracker/languages","stargazers_url":"https://api.github.com/repos/ga-dc/stock-tracker/stargazers","contributors_url":"https://api.github.com/repos/ga-dc/stock-tracker/contributors","subscribers_url":"https://api.github.com/repos/ga-dc/stock-tracker/subscribers","subscription_url":"https://api.github.com/repos/ga-dc/stock-tracker/subscription","commits_url":"https://api.github.com/repos/ga-dc/stock-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-dc/stock-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-dc/stock-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-dc/stock-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-dc/stock-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/ga-dc/stock-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-dc/stock-tracker/merges","archive_url":"https://api.github.com/repos/ga-dc/stock-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-dc/stock-tracker/downloads","issues_url":"https://api.github.com/repos/ga-dc/stock-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/ga-dc/stock-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-dc/stock-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-dc/stock-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-dc/stock-tracker/labels{/name}","releases_url":"https://api.github.com/repos/ga-dc/stock-tracker/releases{/id}","created_at":"2015-05-05T01:54:51Z","updated_at":"2015-05-05T21:03:26Z","pushed_at":"2015-05-07T14:43:44Z","git_url":"git://github.com/ga-dc/stock-tracker.git","ssh_url":"git@github.com:ga-dc/stock-tracker.git","clone_url":"https://github.com/ga-dc/stock-tracker.git","svn_url":"https://github.com/ga-dc/stock-tracker","homepage":null,"size":1779,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":41,"mirror_url":null,"open_issues_count":46,"forks":41,"open_issues":46,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15"},"html":{"href":"https://github.com/ga-dc/stock-tracker/pull/15"},"issue":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/issues/15"},"comments":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/ga-dc/stock-tracker/statuses/601e2daaefc67003d0e53d7c71b84dd4d60f2e7d"}}}}