{"action":"created","comment":{"url":"https://api.github.com/repos/tobara/barhopper/pulls/comments/92643206","pull_request_review_id":13163033,"id":92643206,"diff_hunk":"@@ -160,83 +160,83 @@ function scrollArray(elem, left, top, delay) {\n             }\n         }\n         lastScroll = +new Date;\n-    }          \n-    \n+    }\n+\n     // push a scroll command\n     que.push({\n-        x: left, \n-        y: top, \n+        x: left,\n+        y: top,\n         lastX: (left < 0) ? 0.99 : -0.99,\n-        lastY: (top  < 0) ? 0.99 : -0.99, \n+        lastY: (top  < 0) ? 0.99 : -0.99,\n         start: +new Date\n     });\n-        \n+\n     // don't act if there's a pending queue\n     if (pending) {\n         return;\n-    }  \n+    }\n \n     var scrollWindow = (elem === document.body);\n-    \n+\n     var step = function (time) {\n-        \n+\n         var now = +new Date;\n         var scrollX = 0;\n-        var scrollY = 0; \n-    \n+        var scrollY = 0;\n+\n         for (var i = 0; i < que.length; i++) {\n-            \n+\n             var item = que[i];\n             var elapsed  = now - item.start;\n             var finished = (elapsed >= options.animationTime);\n-            \n+\n             // scroll position: [0, 1]\n             var position = (finished) ? 1 : elapsed / options.animationTime;\n-            \n+\n             // easing [optional]\n             if (options.pulseAlgorithm) {\n                 position = pulse(position);\n             }\n-            \n+\n             // only need the difference\n             var x = (item.x * position - item.lastX) >> 0;\n             var y = (item.y * position - item.lastY) >> 0;\n-            \n+\n             // add this to the total scrolling\n             scrollX += x;\n-            scrollY += y;            \n-            \n+            scrollY += y;\n+\n             // update last values\n             item.lastX += x;\n             item.lastY += y;\n-        \n+\n             // delete and step back if it's over\n             if (finished) {\n                 que.splice(i, 1); i--;\n-            }           \n+            }\n         }\n \n         // scroll left and top\n         if (scrollWindow) {\n             window.scrollBy(scrollX, scrollY);\n-        } \n+        }\n         else {\n             if (scrollX) elem.scrollLeft += scrollX;\n-            if (scrollY) elem.scrollTop  += scrollY;                    \n+            if (scrollY) elem.scrollTop  += scrollY;","path":"app/assets/javascripts/SmoothScroll.js","position":201,"original_position":201,"commit_id":"01ea06775f95bcf3187e828a32b84831ec88342b","original_commit_id":"01ea06775f95bcf3187e828a32b84831ec88342b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected '{' and instead saw 'elem'.","created_at":"2016-12-15T16:21:08Z","updated_at":"2016-12-15T16:21:08Z","html_url":"https://github.com/tobara/barhopper/pull/38#discussion_r92643206","pull_request_url":"https://api.github.com/repos/tobara/barhopper/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/tobara/barhopper/pulls/comments/92643206"},"html":{"href":"https://github.com/tobara/barhopper/pull/38#discussion_r92643206"},"pull_request":{"href":"https://api.github.com/repos/tobara/barhopper/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/tobara/barhopper/pulls/38","id":98182358,"html_url":"https://github.com/tobara/barhopper/pull/38","diff_url":"https://github.com/tobara/barhopper/pull/38.diff","patch_url":"https://github.com/tobara/barhopper/pull/38.patch","issue_url":"https://api.github.com/repos/tobara/barhopper/issues/38","number":38,"state":"closed","locked":false,"title":"good cleanup","user":{"login":"tobara","id":13801742,"avatar_url":"https://avatars.githubusercontent.com/u/13801742?v=3","gravatar_id":"","url":"https://api.github.com/users/tobara","html_url":"https://github.com/tobara","followers_url":"https://api.github.com/users/tobara/followers","following_url":"https://api.github.com/users/tobara/following{/other_user}","gists_url":"https://api.github.com/users/tobara/gists{/gist_id}","starred_url":"https://api.github.com/users/tobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobara/subscriptions","organizations_url":"https://api.github.com/users/tobara/orgs","repos_url":"https://api.github.com/users/tobara/repos","events_url":"https://api.github.com/users/tobara/events{/privacy}","received_events_url":"https://api.github.com/users/tobara/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-15T16:21:01Z","updated_at":"2016-12-15T16:21:08Z","closed_at":"2016-12-15T16:21:06Z","merged_at":"2016-12-15T16:21:06Z","merge_commit_sha":"e85d657b453ae82065797edb67964f83f52ce958","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tobara/barhopper/pulls/38/commits","review_comments_url":"https://api.github.com/repos/tobara/barhopper/pulls/38/comments","review_comment_url":"https://api.github.com/repos/tobara/barhopper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tobara/barhopper/issues/38/comments","statuses_url":"https://api.github.com/repos/tobara/barhopper/statuses/01ea06775f95bcf3187e828a32b84831ec88342b","head":{"label":"tobara:js_time","ref":"js_time","sha":"01ea06775f95bcf3187e828a32b84831ec88342b","user":{"login":"tobara","id":13801742,"avatar_url":"https://avatars.githubusercontent.com/u/13801742?v=3","gravatar_id":"","url":"https://api.github.com/users/tobara","html_url":"https://github.com/tobara","followers_url":"https://api.github.com/users/tobara/followers","following_url":"https://api.github.com/users/tobara/following{/other_user}","gists_url":"https://api.github.com/users/tobara/gists{/gist_id}","starred_url":"https://api.github.com/users/tobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobara/subscriptions","organizations_url":"https://api.github.com/users/tobara/orgs","repos_url":"https://api.github.com/users/tobara/repos","events_url":"https://api.github.com/users/tobara/events{/privacy}","received_events_url":"https://api.github.com/users/tobara/received_events","type":"User","site_admin":false},"repo":{"id":49887449,"name":"barhopper","full_name":"tobara/barhopper","owner":{"login":"tobara","id":13801742,"avatar_url":"https://avatars.githubusercontent.com/u/13801742?v=3","gravatar_id":"","url":"https://api.github.com/users/tobara","html_url":"https://github.com/tobara","followers_url":"https://api.github.com/users/tobara/followers","following_url":"https://api.github.com/users/tobara/following{/other_user}","gists_url":"https://api.github.com/users/tobara/gists{/gist_id}","starred_url":"https://api.github.com/users/tobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobara/subscriptions","organizations_url":"https://api.github.com/users/tobara/orgs","repos_url":"https://api.github.com/users/tobara/repos","events_url":"https://api.github.com/users/tobara/events{/privacy}","received_events_url":"https://api.github.com/users/tobara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tobara/barhopper","description":"BarHopper","fork":false,"url":"https://api.github.com/repos/tobara/barhopper","forks_url":"https://api.github.com/repos/tobara/barhopper/forks","keys_url":"https://api.github.com/repos/tobara/barhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tobara/barhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tobara/barhopper/teams","hooks_url":"https://api.github.com/repos/tobara/barhopper/hooks","issue_events_url":"https://api.github.com/repos/tobara/barhopper/issues/events{/number}","events_url":"https://api.github.com/repos/tobara/barhopper/events","assignees_url":"https://api.github.com/repos/tobara/barhopper/assignees{/user}","branches_url":"https://api.github.com/repos/tobara/barhopper/branches{/branch}","tags_url":"https://api.github.com/repos/tobara/barhopper/tags","blobs_url":"https://api.github.com/repos/tobara/barhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tobara/barhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tobara/barhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/tobara/barhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tobara/barhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/tobara/barhopper/languages","stargazers_url":"https://api.github.com/repos/tobara/barhopper/stargazers","contributors_url":"https://api.github.com/repos/tobara/barhopper/contributors","subscribers_url":"https://api.github.com/repos/tobara/barhopper/subscribers","subscription_url":"https://api.github.com/repos/tobara/barhopper/subscription","commits_url":"https://api.github.com/repos/tobara/barhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/tobara/barhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/tobara/barhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/tobara/barhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/tobara/barhopper/contents/{+path}","compare_url":"https://api.github.com/repos/tobara/barhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tobara/barhopper/merges","archive_url":"https://api.github.com/repos/tobara/barhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tobara/barhopper/downloads","issues_url":"https://api.github.com/repos/tobara/barhopper/issues{/number}","pulls_url":"https://api.github.com/repos/tobara/barhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/tobara/barhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/tobara/barhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tobara/barhopper/labels{/name}","releases_url":"https://api.github.com/repos/tobara/barhopper/releases{/id}","deployments_url":"https://api.github.com/repos/tobara/barhopper/deployments","created_at":"2016-01-18T15:59:31Z","updated_at":"2016-12-12T22:35:29Z","pushed_at":"2016-12-15T16:21:07Z","git_url":"git://github.com/tobara/barhopper.git","ssh_url":"git@github.com:tobara/barhopper.git","clone_url":"https://github.com/tobara/barhopper.git","svn_url":"https://github.com/tobara/barhopper","homepage":"http://bar-hopper.herokuapp.com","size":3329,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tobara:master","ref":"master","sha":"8e7adf41675167cf68ec6e95bc28b1a4b751b9e9","user":{"login":"tobara","id":13801742,"avatar_url":"https://avatars.githubusercontent.com/u/13801742?v=3","gravatar_id":"","url":"https://api.github.com/users/tobara","html_url":"https://github.com/tobara","followers_url":"https://api.github.com/users/tobara/followers","following_url":"https://api.github.com/users/tobara/following{/other_user}","gists_url":"https://api.github.com/users/tobara/gists{/gist_id}","starred_url":"https://api.github.com/users/tobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobara/subscriptions","organizations_url":"https://api.github.com/users/tobara/orgs","repos_url":"https://api.github.com/users/tobara/repos","events_url":"https://api.github.com/users/tobara/events{/privacy}","received_events_url":"https://api.github.com/users/tobara/received_events","type":"User","site_admin":false},"repo":{"id":49887449,"name":"barhopper","full_name":"tobara/barhopper","owner":{"login":"tobara","id":13801742,"avatar_url":"https://avatars.githubusercontent.com/u/13801742?v=3","gravatar_id":"","url":"https://api.github.com/users/tobara","html_url":"https://github.com/tobara","followers_url":"https://api.github.com/users/tobara/followers","following_url":"https://api.github.com/users/tobara/following{/other_user}","gists_url":"https://api.github.com/users/tobara/gists{/gist_id}","starred_url":"https://api.github.com/users/tobara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobara/subscriptions","organizations_url":"https://api.github.com/users/tobara/orgs","repos_url":"https://api.github.com/users/tobara/repos","events_url":"https://api.github.com/users/tobara/events{/privacy}","received_events_url":"https://api.github.com/users/tobara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tobara/barhopper","description":"BarHopper","fork":false,"url":"https://api.github.com/repos/tobara/barhopper","forks_url":"https://api.github.com/repos/tobara/barhopper/forks","keys_url":"https://api.github.com/repos/tobara/barhopper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tobara/barhopper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tobara/barhopper/teams","hooks_url":"https://api.github.com/repos/tobara/barhopper/hooks","issue_events_url":"https://api.github.com/repos/tobara/barhopper/issues/events{/number}","events_url":"https://api.github.com/repos/tobara/barhopper/events","assignees_url":"https://api.github.com/repos/tobara/barhopper/assignees{/user}","branches_url":"https://api.github.com/repos/tobara/barhopper/branches{/branch}","tags_url":"https://api.github.com/repos/tobara/barhopper/tags","blobs_url":"https://api.github.com/repos/tobara/barhopper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tobara/barhopper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tobara/barhopper/git/refs{/sha}","trees_url":"https://api.github.com/repos/tobara/barhopper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tobara/barhopper/statuses/{sha}","languages_url":"https://api.github.com/repos/tobara/barhopper/languages","stargazers_url":"https://api.github.com/repos/tobara/barhopper/stargazers","contributors_url":"https://api.github.com/repos/tobara/barhopper/contributors","subscribers_url":"https://api.github.com/repos/tobara/barhopper/subscribers","subscription_url":"https://api.github.com/repos/tobara/barhopper/subscription","commits_url":"https://api.github.com/repos/tobara/barhopper/commits{/sha}","git_commits_url":"https://api.github.com/repos/tobara/barhopper/git/commits{/sha}","comments_url":"https://api.github.com/repos/tobara/barhopper/comments{/number}","issue_comment_url":"https://api.github.com/repos/tobara/barhopper/issues/comments{/number}","contents_url":"https://api.github.com/repos/tobara/barhopper/contents/{+path}","compare_url":"https://api.github.com/repos/tobara/barhopper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tobara/barhopper/merges","archive_url":"https://api.github.com/repos/tobara/barhopper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tobara/barhopper/downloads","issues_url":"https://api.github.com/repos/tobara/barhopper/issues{/number}","pulls_url":"https://api.github.com/repos/tobara/barhopper/pulls{/number}","milestones_url":"https://api.github.com/repos/tobara/barhopper/milestones{/number}","notifications_url":"https://api.github.com/repos/tobara/barhopper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tobara/barhopper/labels{/name}","releases_url":"https://api.github.com/repos/tobara/barhopper/releases{/id}","deployments_url":"https://api.github.com/repos/tobara/barhopper/deployments","created_at":"2016-01-18T15:59:31Z","updated_at":"2016-12-12T22:35:29Z","pushed_at":"2016-12-15T16:21:07Z","git_url":"git://github.com/tobara/barhopper.git","ssh_url":"git@github.com:tobara/barhopper.git","clone_url":"https://github.com/tobara/barhopper.git","svn_url":"https://github.com/tobara/barhopper","homepage":"http://bar-hopper.herokuapp.com","size":3329,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tobara/barhopper/pulls/38"},"html":{"href":"https://github.com/tobara/barhopper/pull/38"},"issue":{"href":"https://api.github.com/repos/tobara/barhopper/issues/38"},"comments":{"href":"https://api.github.com/repos/tobara/barhopper/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/tobara/barhopper/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/tobara/barhopper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tobara/barhopper/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/tobara/barhopper/statuses/01ea06775f95bcf3187e828a32b84831ec88342b"}}}}
{"actor":{"display_login":"houndci-bot"}}