{"action":"created","comment":{"url":"https://api.github.com/repos/townsquared/utils/pulls/comments/60290137","id":60290137,"diff_hunk":"@@ -36,26 +36,28 @@ angular.module('ts.utils')\n         }\n       },\n       link: function($scope, $element, $attr) {\n+        var origOffset;\n         var ARROW_SIZE = 10;\n         var template = $templateCache.get('templates/tsTooltip.html');\n         var direction = $scope.tsTooltipDirection || 'right';\n         var eventType = $scope.tsTooltipEvent || 'mouseenter';\n         var isVisible = false;\n \n         var tooltipContainer = $compile(template)($scope);\n-        //tooltipContainer[0].style.visibility = 'hidden';\n \n         var newTooltip = tooltipContainer.children()[0];\n \n-        $scope.$watch(function(){return newTooltip.offsetWidth}, positionTooltip);\n-        $scope.$watch(function(){return newTooltip.offsetHeight}, positionTooltip);\n-        $scope.$watch(function(){return $element[0].getBoundingClientRect().top}, positionTooltip);\n-        $scope.$watch(function(){return $element[0].getBoundingClientRect().left}, positionTooltip);\n+        // Fix the position of the tooltip if the height of the tooltip itself changes.  This is necessary for dynamic","path":"src/tooltip.js","position":20,"original_position":20,"commit_id":"63f6862725d3b5d0adac6c87cb6b99f277a571d7","original_commit_id":"63f6862725d3b5d0adac6c87cb6b99f277a571d7","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":"Line is too long.","created_at":"2016-04-19T18:58:29Z","updated_at":"2016-04-19T18:58:29Z","html_url":"https://github.com/townsquared/utils/pull/10#discussion_r60290137","pull_request_url":"https://api.github.com/repos/townsquared/utils/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/townsquared/utils/pulls/comments/60290137"},"html":{"href":"https://github.com/townsquared/utils/pull/10#discussion_r60290137"},"pull_request":{"href":"https://api.github.com/repos/townsquared/utils/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/townsquared/utils/pulls/10","id":67071049,"html_url":"https://github.com/townsquared/utils/pull/10","diff_url":"https://github.com/townsquared/utils/pull/10.diff","patch_url":"https://github.com/townsquared/utils/pull/10.patch","issue_url":"https://api.github.com/repos/townsquared/utils/issues/10","number":10,"state":"open","locked":false,"title":"Improves performance on tooltips, reduces work done up front and numb…","user":{"login":"shusain","id":523230,"avatar_url":"https://avatars.githubusercontent.com/u/523230?v=3","gravatar_id":"","url":"https://api.github.com/users/shusain","html_url":"https://github.com/shusain","followers_url":"https://api.github.com/users/shusain/followers","following_url":"https://api.github.com/users/shusain/following{/other_user}","gists_url":"https://api.github.com/users/shusain/gists{/gist_id}","starred_url":"https://api.github.com/users/shusain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shusain/subscriptions","organizations_url":"https://api.github.com/users/shusain/orgs","repos_url":"https://api.github.com/users/shusain/repos","events_url":"https://api.github.com/users/shusain/events{/privacy}","received_events_url":"https://api.github.com/users/shusain/received_events","type":"User","site_admin":false},"body":"…er of watchers to minimum for it to still work with dynamic content and flexible sizing.  Reduces initial load related to tooltips by around 400ms (from around 800ms) and reduces extra watchers added by tooltips.","created_at":"2016-04-19T18:58:22Z","updated_at":"2016-04-19T18:58:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7dce9822e72e18d70e9412693beb951223eb197","assignee":{"login":"hassanbazzi","id":3339608,"avatar_url":"https://avatars.githubusercontent.com/u/3339608?v=3","gravatar_id":"","url":"https://api.github.com/users/hassanbazzi","html_url":"https://github.com/hassanbazzi","followers_url":"https://api.github.com/users/hassanbazzi/followers","following_url":"https://api.github.com/users/hassanbazzi/following{/other_user}","gists_url":"https://api.github.com/users/hassanbazzi/gists{/gist_id}","starred_url":"https://api.github.com/users/hassanbazzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassanbazzi/subscriptions","organizations_url":"https://api.github.com/users/hassanbazzi/orgs","repos_url":"https://api.github.com/users/hassanbazzi/repos","events_url":"https://api.github.com/users/hassanbazzi/events{/privacy}","received_events_url":"https://api.github.com/users/hassanbazzi/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/townsquared/utils/pulls/10/commits","review_comments_url":"https://api.github.com/repos/townsquared/utils/pulls/10/comments","review_comment_url":"https://api.github.com/repos/townsquared/utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/townsquared/utils/issues/10/comments","statuses_url":"https://api.github.com/repos/townsquared/utils/statuses/63f6862725d3b5d0adac6c87cb6b99f277a571d7","head":{"label":"townsquared:fix-tooltip-performance","ref":"fix-tooltip-performance","sha":"63f6862725d3b5d0adac6c87cb6b99f277a571d7","user":{"login":"townsquared","id":7076183,"avatar_url":"https://avatars.githubusercontent.com/u/7076183?v=3","gravatar_id":"","url":"https://api.github.com/users/townsquared","html_url":"https://github.com/townsquared","followers_url":"https://api.github.com/users/townsquared/followers","following_url":"https://api.github.com/users/townsquared/following{/other_user}","gists_url":"https://api.github.com/users/townsquared/gists{/gist_id}","starred_url":"https://api.github.com/users/townsquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/townsquared/subscriptions","organizations_url":"https://api.github.com/users/townsquared/orgs","repos_url":"https://api.github.com/users/townsquared/repos","events_url":"https://api.github.com/users/townsquared/events{/privacy}","received_events_url":"https://api.github.com/users/townsquared/received_events","type":"Organization","site_admin":false},"repo":{"id":35169302,"name":"utils","full_name":"townsquared/utils","owner":{"login":"townsquared","id":7076183,"avatar_url":"https://avatars.githubusercontent.com/u/7076183?v=3","gravatar_id":"","url":"https://api.github.com/users/townsquared","html_url":"https://github.com/townsquared","followers_url":"https://api.github.com/users/townsquared/followers","following_url":"https://api.github.com/users/townsquared/following{/other_user}","gists_url":"https://api.github.com/users/townsquared/gists{/gist_id}","starred_url":"https://api.github.com/users/townsquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/townsquared/subscriptions","organizations_url":"https://api.github.com/users/townsquared/orgs","repos_url":"https://api.github.com/users/townsquared/repos","events_url":"https://api.github.com/users/townsquared/events{/privacy}","received_events_url":"https://api.github.com/users/townsquared/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/townsquared/utils","description":"A package of open-sourceable angularjs utils","fork":false,"url":"https://api.github.com/repos/townsquared/utils","forks_url":"https://api.github.com/repos/townsquared/utils/forks","keys_url":"https://api.github.com/repos/townsquared/utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/townsquared/utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/townsquared/utils/teams","hooks_url":"https://api.github.com/repos/townsquared/utils/hooks","issue_events_url":"https://api.github.com/repos/townsquared/utils/issues/events{/number}","events_url":"https://api.github.com/repos/townsquared/utils/events","assignees_url":"https://api.github.com/repos/townsquared/utils/assignees{/user}","branches_url":"https://api.github.com/repos/townsquared/utils/branches{/branch}","tags_url":"https://api.github.com/repos/townsquared/utils/tags","blobs_url":"https://api.github.com/repos/townsquared/utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/townsquared/utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/townsquared/utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/townsquared/utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/townsquared/utils/statuses/{sha}","languages_url":"https://api.github.com/repos/townsquared/utils/languages","stargazers_url":"https://api.github.com/repos/townsquared/utils/stargazers","contributors_url":"https://api.github.com/repos/townsquared/utils/contributors","subscribers_url":"https://api.github.com/repos/townsquared/utils/subscribers","subscription_url":"https://api.github.com/repos/townsquared/utils/subscription","commits_url":"https://api.github.com/repos/townsquared/utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/townsquared/utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/townsquared/utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/townsquared/utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/townsquared/utils/contents/{+path}","compare_url":"https://api.github.com/repos/townsquared/utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/townsquared/utils/merges","archive_url":"https://api.github.com/repos/townsquared/utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/townsquared/utils/downloads","issues_url":"https://api.github.com/repos/townsquared/utils/issues{/number}","pulls_url":"https://api.github.com/repos/townsquared/utils/pulls{/number}","milestones_url":"https://api.github.com/repos/townsquared/utils/milestones{/number}","notifications_url":"https://api.github.com/repos/townsquared/utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/townsquared/utils/labels{/name}","releases_url":"https://api.github.com/repos/townsquared/utils/releases{/id}","deployments_url":"https://api.github.com/repos/townsquared/utils/deployments","created_at":"2015-05-06T16:10:28Z","updated_at":"2016-02-17T21:25:07Z","pushed_at":"2016-04-19T18:58:23Z","git_url":"git://github.com/townsquared/utils.git","ssh_url":"git@github.com:townsquared/utils.git","clone_url":"https://github.com/townsquared/utils.git","svn_url":"https://github.com/townsquared/utils","homepage":null,"size":1340,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"townsquared:master","ref":"master","sha":"af811ea880a54a03601c3cbaaf827f5ca8605261","user":{"login":"townsquared","id":7076183,"avatar_url":"https://avatars.githubusercontent.com/u/7076183?v=3","gravatar_id":"","url":"https://api.github.com/users/townsquared","html_url":"https://github.com/townsquared","followers_url":"https://api.github.com/users/townsquared/followers","following_url":"https://api.github.com/users/townsquared/following{/other_user}","gists_url":"https://api.github.com/users/townsquared/gists{/gist_id}","starred_url":"https://api.github.com/users/townsquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/townsquared/subscriptions","organizations_url":"https://api.github.com/users/townsquared/orgs","repos_url":"https://api.github.com/users/townsquared/repos","events_url":"https://api.github.com/users/townsquared/events{/privacy}","received_events_url":"https://api.github.com/users/townsquared/received_events","type":"Organization","site_admin":false},"repo":{"id":35169302,"name":"utils","full_name":"townsquared/utils","owner":{"login":"townsquared","id":7076183,"avatar_url":"https://avatars.githubusercontent.com/u/7076183?v=3","gravatar_id":"","url":"https://api.github.com/users/townsquared","html_url":"https://github.com/townsquared","followers_url":"https://api.github.com/users/townsquared/followers","following_url":"https://api.github.com/users/townsquared/following{/other_user}","gists_url":"https://api.github.com/users/townsquared/gists{/gist_id}","starred_url":"https://api.github.com/users/townsquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/townsquared/subscriptions","organizations_url":"https://api.github.com/users/townsquared/orgs","repos_url":"https://api.github.com/users/townsquared/repos","events_url":"https://api.github.com/users/townsquared/events{/privacy}","received_events_url":"https://api.github.com/users/townsquared/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/townsquared/utils","description":"A package of open-sourceable angularjs utils","fork":false,"url":"https://api.github.com/repos/townsquared/utils","forks_url":"https://api.github.com/repos/townsquared/utils/forks","keys_url":"https://api.github.com/repos/townsquared/utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/townsquared/utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/townsquared/utils/teams","hooks_url":"https://api.github.com/repos/townsquared/utils/hooks","issue_events_url":"https://api.github.com/repos/townsquared/utils/issues/events{/number}","events_url":"https://api.github.com/repos/townsquared/utils/events","assignees_url":"https://api.github.com/repos/townsquared/utils/assignees{/user}","branches_url":"https://api.github.com/repos/townsquared/utils/branches{/branch}","tags_url":"https://api.github.com/repos/townsquared/utils/tags","blobs_url":"https://api.github.com/repos/townsquared/utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/townsquared/utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/townsquared/utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/townsquared/utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/townsquared/utils/statuses/{sha}","languages_url":"https://api.github.com/repos/townsquared/utils/languages","stargazers_url":"https://api.github.com/repos/townsquared/utils/stargazers","contributors_url":"https://api.github.com/repos/townsquared/utils/contributors","subscribers_url":"https://api.github.com/repos/townsquared/utils/subscribers","subscription_url":"https://api.github.com/repos/townsquared/utils/subscription","commits_url":"https://api.github.com/repos/townsquared/utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/townsquared/utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/townsquared/utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/townsquared/utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/townsquared/utils/contents/{+path}","compare_url":"https://api.github.com/repos/townsquared/utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/townsquared/utils/merges","archive_url":"https://api.github.com/repos/townsquared/utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/townsquared/utils/downloads","issues_url":"https://api.github.com/repos/townsquared/utils/issues{/number}","pulls_url":"https://api.github.com/repos/townsquared/utils/pulls{/number}","milestones_url":"https://api.github.com/repos/townsquared/utils/milestones{/number}","notifications_url":"https://api.github.com/repos/townsquared/utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/townsquared/utils/labels{/name}","releases_url":"https://api.github.com/repos/townsquared/utils/releases{/id}","deployments_url":"https://api.github.com/repos/townsquared/utils/deployments","created_at":"2015-05-06T16:10:28Z","updated_at":"2016-02-17T21:25:07Z","pushed_at":"2016-04-19T18:58:23Z","git_url":"git://github.com/townsquared/utils.git","ssh_url":"git@github.com:townsquared/utils.git","clone_url":"https://github.com/townsquared/utils.git","svn_url":"https://github.com/townsquared/utils","homepage":null,"size":1340,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/townsquared/utils/pulls/10"},"html":{"href":"https://github.com/townsquared/utils/pull/10"},"issue":{"href":"https://api.github.com/repos/townsquared/utils/issues/10"},"comments":{"href":"https://api.github.com/repos/townsquared/utils/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/townsquared/utils/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/townsquared/utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/townsquared/utils/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/townsquared/utils/statuses/63f6862725d3b5d0adac6c87cb6b99f277a571d7"}}}}