{"action":"created","comment":{"url":"https://api.github.com/repos/andela/troupon/pulls/comments/43629782","id":43629782,"diff_hunk":"@@ -0,0 +1,41 @@\n+<script type=\"text/javascript\">\n+    $('document').ready(function(){\n+        MapMaker = {\n+            geocoder: '',\n+            latlng: '',\n+            map: '',\n+            $mapCanvas: document.getElementById('map'),\n+            $address: {'address': document.getElementsByTagName('address')[0].innerHTML},\n+            mapOptions: {zoom: 18},\n+            initialize: function() {\n+                this.geocoder = new google.maps.Geocoder();\n+                this.latlng = new google.maps.LatLng(-34.397, 150.644);\n+                this.mapOptions.center = this.latlng;\n+                this.setMap();\n+                this.codeAddress();\n+                console.log(this.$mapCanvas);\n+            },\n+            setMap: function(){\n+                this.map = new google.maps.Map(this.$mapCanvas, this.mapOptions);","path":"troupon/static/js/map.js","position":19,"original_position":19,"commit_id":"98318a7538cbb71ed824704f930d84925c870d65","original_commit_id":"98318a7538cbb71ed824704f930d84925c870d65","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2015-11-02T13:56:19Z","updated_at":"2015-11-02T13:56:19Z","html_url":"https://github.com/andela/troupon/pull/68#discussion_r43629782","pull_request_url":"https://api.github.com/repos/andela/troupon/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/andela/troupon/pulls/comments/43629782"},"html":{"href":"https://github.com/andela/troupon/pull/68#discussion_r43629782"},"pull_request":{"href":"https://api.github.com/repos/andela/troupon/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/andela/troupon/pulls/68","id":48263400,"html_url":"https://github.com/andela/troupon/pull/68","diff_url":"https://github.com/andela/troupon/pull/68.diff","patch_url":"https://github.com/andela/troupon/pull/68.patch","issue_url":"https://api.github.com/repos/andela/troupon/issues/68","number":68,"state":"open","locked":false,"title":"Feature deal model and view","user":{"login":"andela-osule","id":13223818,"avatar_url":"https://avatars.githubusercontent.com/u/13223818?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-osule","html_url":"https://github.com/andela-osule","followers_url":"https://api.github.com/users/andela-osule/followers","following_url":"https://api.github.com/users/andela-osule/following{/other_user}","gists_url":"https://api.github.com/users/andela-osule/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-osule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-osule/subscriptions","organizations_url":"https://api.github.com/users/andela-osule/orgs","repos_url":"https://api.github.com/users/andela-osule/repos","events_url":"https://api.github.com/users/andela-osule/events{/privacy}","received_events_url":"https://api.github.com/users/andela-osule/received_events","type":"User","site_admin":false},"body":"This build adds the following features:\r\n+ the ability for a user to view a single deal by navigating to /deal/deal-slug\r\n+ the ability for a user to view deal listings in each category by navigating to /deals/listings?category=category-slug","created_at":"2015-10-20T21:55:22Z","updated_at":"2015-11-02T13:56:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bac185f5f6a29da35fe59843599fe002b85b066","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/troupon/pulls/68/commits","review_comments_url":"https://api.github.com/repos/andela/troupon/pulls/68/comments","review_comment_url":"https://api.github.com/repos/andela/troupon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/troupon/issues/68/comments","statuses_url":"https://api.github.com/repos/andela/troupon/statuses/98318a7538cbb71ed824704f930d84925c870d65","head":{"label":"andela:feature-deal-model-and-view","ref":"feature-deal-model-and-view","sha":"98318a7538cbb71ed824704f930d84925c870d65","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":40593599,"name":"troupon","full_name":"andela/troupon","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/troupon","description":"Groupon Clone","fork":false,"url":"https://api.github.com/repos/andela/troupon","forks_url":"https://api.github.com/repos/andela/troupon/forks","keys_url":"https://api.github.com/repos/andela/troupon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/troupon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/troupon/teams","hooks_url":"https://api.github.com/repos/andela/troupon/hooks","issue_events_url":"https://api.github.com/repos/andela/troupon/issues/events{/number}","events_url":"https://api.github.com/repos/andela/troupon/events","assignees_url":"https://api.github.com/repos/andela/troupon/assignees{/user}","branches_url":"https://api.github.com/repos/andela/troupon/branches{/branch}","tags_url":"https://api.github.com/repos/andela/troupon/tags","blobs_url":"https://api.github.com/repos/andela/troupon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/troupon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/troupon/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/troupon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/troupon/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/troupon/languages","stargazers_url":"https://api.github.com/repos/andela/troupon/stargazers","contributors_url":"https://api.github.com/repos/andela/troupon/contributors","subscribers_url":"https://api.github.com/repos/andela/troupon/subscribers","subscription_url":"https://api.github.com/repos/andela/troupon/subscription","commits_url":"https://api.github.com/repos/andela/troupon/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/troupon/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/troupon/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/troupon/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/troupon/contents/{+path}","compare_url":"https://api.github.com/repos/andela/troupon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/troupon/merges","archive_url":"https://api.github.com/repos/andela/troupon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/troupon/downloads","issues_url":"https://api.github.com/repos/andela/troupon/issues{/number}","pulls_url":"https://api.github.com/repos/andela/troupon/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/troupon/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/troupon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/troupon/labels{/name}","releases_url":"https://api.github.com/repos/andela/troupon/releases{/id}","created_at":"2015-08-12T09:56:57Z","updated_at":"2015-09-01T09:09:23Z","pushed_at":"2015-11-02T13:56:16Z","git_url":"git://github.com/andela/troupon.git","ssh_url":"git@github.com:andela/troupon.git","clone_url":"https://github.com/andela/troupon.git","svn_url":"https://github.com/andela/troupon","homepage":null,"size":5791,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"andela:develop","ref":"develop","sha":"cb649651017cffba3b6d00feb83f7c192e6c499d","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":40593599,"name":"troupon","full_name":"andela/troupon","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/troupon","description":"Groupon Clone","fork":false,"url":"https://api.github.com/repos/andela/troupon","forks_url":"https://api.github.com/repos/andela/troupon/forks","keys_url":"https://api.github.com/repos/andela/troupon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/troupon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/troupon/teams","hooks_url":"https://api.github.com/repos/andela/troupon/hooks","issue_events_url":"https://api.github.com/repos/andela/troupon/issues/events{/number}","events_url":"https://api.github.com/repos/andela/troupon/events","assignees_url":"https://api.github.com/repos/andela/troupon/assignees{/user}","branches_url":"https://api.github.com/repos/andela/troupon/branches{/branch}","tags_url":"https://api.github.com/repos/andela/troupon/tags","blobs_url":"https://api.github.com/repos/andela/troupon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/troupon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/troupon/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/troupon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/troupon/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/troupon/languages","stargazers_url":"https://api.github.com/repos/andela/troupon/stargazers","contributors_url":"https://api.github.com/repos/andela/troupon/contributors","subscribers_url":"https://api.github.com/repos/andela/troupon/subscribers","subscription_url":"https://api.github.com/repos/andela/troupon/subscription","commits_url":"https://api.github.com/repos/andela/troupon/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/troupon/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/troupon/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/troupon/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/troupon/contents/{+path}","compare_url":"https://api.github.com/repos/andela/troupon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/troupon/merges","archive_url":"https://api.github.com/repos/andela/troupon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/troupon/downloads","issues_url":"https://api.github.com/repos/andela/troupon/issues{/number}","pulls_url":"https://api.github.com/repos/andela/troupon/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/troupon/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/troupon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/troupon/labels{/name}","releases_url":"https://api.github.com/repos/andela/troupon/releases{/id}","created_at":"2015-08-12T09:56:57Z","updated_at":"2015-09-01T09:09:23Z","pushed_at":"2015-11-02T13:56:16Z","git_url":"git://github.com/andela/troupon.git","ssh_url":"git@github.com:andela/troupon.git","clone_url":"https://github.com/andela/troupon.git","svn_url":"https://github.com/andela/troupon","homepage":null,"size":5791,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/troupon/pulls/68"},"html":{"href":"https://github.com/andela/troupon/pull/68"},"issue":{"href":"https://api.github.com/repos/andela/troupon/issues/68"},"comments":{"href":"https://api.github.com/repos/andela/troupon/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/troupon/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/troupon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/troupon/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/andela/troupon/statuses/98318a7538cbb71ed824704f930d84925c870d65"}}}}