{"action":"created","comment":{"url":"https://api.github.com/repos/girder/large_image/pulls/comments/101757914","pull_request_review_id":22496741,"id":101757914,"diff_hunk":"@@ -1,11 +1,19 @@\n+import _ from 'underscore';\n+\n import ImageViewerWidget from './base';\n \n var LeafletImageViewerWidget = ImageViewerWidget.extend({\n     initialize: function (settings) {\n         ImageViewerWidget.prototype.initialize.call(this, settings);\n \n-        $('head').prepend(\n-            $('<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.css\">'));\n+        var cssLoaded = _.some(\n+            document.styleSheets,","path":"web_client/views/imageViewerWidget/leaflet.js","position":12,"original_position":12,"commit_id":"b89c0058cba5c379842c7bef898509595566bcd6","original_commit_id":"b89c0058cba5c379842c7bef898509595566bcd6","user":{"login":"jbeezley","id":31890,"avatar_url":"https://avatars.githubusercontent.com/u/31890?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeezley","html_url":"https://github.com/jbeezley","followers_url":"https://api.github.com/users/jbeezley/followers","following_url":"https://api.github.com/users/jbeezley/following{/other_user}","gists_url":"https://api.github.com/users/jbeezley/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeezley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeezley/subscriptions","organizations_url":"https://api.github.com/users/jbeezley/orgs","repos_url":"https://api.github.com/users/jbeezley/repos","events_url":"https://api.github.com/users/jbeezley/events{/privacy}","received_events_url":"https://api.github.com/users/jbeezley/received_events","type":"User","site_admin":false},"body":"I don't see any problem with it.","created_at":"2017-02-17T13:41:37Z","updated_at":"2017-02-17T13:41:37Z","html_url":"https://github.com/girder/large_image/pull/143#discussion_r101757914","pull_request_url":"https://api.github.com/repos/girder/large_image/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/girder/large_image/pulls/comments/101757914"},"html":{"href":"https://github.com/girder/large_image/pull/143#discussion_r101757914"},"pull_request":{"href":"https://api.github.com/repos/girder/large_image/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/girder/large_image/pulls/143","id":106665625,"html_url":"https://github.com/girder/large_image/pull/143","diff_url":"https://github.com/girder/large_image/pull/143.diff","patch_url":"https://github.com/girder/large_image/pull/143.patch","issue_url":"https://api.github.com/repos/girder/large_image/issues/143","number":143,"state":"open","locked":false,"title":"Add guards to prevent duplicate CSS elements from being added to the DOM","user":{"login":"brianhelba","id":1282879,"avatar_url":"https://avatars.githubusercontent.com/u/1282879?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhelba","html_url":"https://github.com/brianhelba","followers_url":"https://api.github.com/users/brianhelba/followers","following_url":"https://api.github.com/users/brianhelba/following{/other_user}","gists_url":"https://api.github.com/users/brianhelba/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhelba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhelba/subscriptions","organizations_url":"https://api.github.com/users/brianhelba/orgs","repos_url":"https://api.github.com/users/brianhelba/repos","events_url":"https://api.github.com/users/brianhelba/events{/privacy}","received_events_url":"https://api.github.com/users/brianhelba/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-17T04:13:32Z","updated_at":"2017-02-17T13:41:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4986f30ff1badf357157fe1c4ce45b509b7a7b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/girder/large_image/pulls/143/commits","review_comments_url":"https://api.github.com/repos/girder/large_image/pulls/143/comments","review_comment_url":"https://api.github.com/repos/girder/large_image/pulls/comments{/number}","comments_url":"https://api.github.com/repos/girder/large_image/issues/143/comments","statuses_url":"https://api.github.com/repos/girder/large_image/statuses/b89c0058cba5c379842c7bef898509595566bcd6","head":{"label":"girder:css-guards","ref":"css-guards","sha":"b89c0058cba5c379842c7bef898509595566bcd6","user":{"login":"girder","id":5150517,"avatar_url":"https://avatars.githubusercontent.com/u/5150517?v=3","gravatar_id":"","url":"https://api.github.com/users/girder","html_url":"https://github.com/girder","followers_url":"https://api.github.com/users/girder/followers","following_url":"https://api.github.com/users/girder/following{/other_user}","gists_url":"https://api.github.com/users/girder/gists{/gist_id}","starred_url":"https://api.github.com/users/girder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girder/subscriptions","organizations_url":"https://api.github.com/users/girder/orgs","repos_url":"https://api.github.com/users/girder/repos","events_url":"https://api.github.com/users/girder/events{/privacy}","received_events_url":"https://api.github.com/users/girder/received_events","type":"Organization","site_admin":false},"repo":{"id":45569214,"name":"large_image","full_name":"girder/large_image","owner":{"login":"girder","id":5150517,"avatar_url":"https://avatars.githubusercontent.com/u/5150517?v=3","gravatar_id":"","url":"https://api.github.com/users/girder","html_url":"https://github.com/girder","followers_url":"https://api.github.com/users/girder/followers","following_url":"https://api.github.com/users/girder/following{/other_user}","gists_url":"https://api.github.com/users/girder/gists{/gist_id}","starred_url":"https://api.github.com/users/girder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girder/subscriptions","organizations_url":"https://api.github.com/users/girder/orgs","repos_url":"https://api.github.com/users/girder/repos","events_url":"https://api.github.com/users/girder/events{/privacy}","received_events_url":"https://api.github.com/users/girder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/girder/large_image","description":"A Girder plugin to view multiresolution images, using several viewers.","fork":false,"url":"https://api.github.com/repos/girder/large_image","forks_url":"https://api.github.com/repos/girder/large_image/forks","keys_url":"https://api.github.com/repos/girder/large_image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/girder/large_image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/girder/large_image/teams","hooks_url":"https://api.github.com/repos/girder/large_image/hooks","issue_events_url":"https://api.github.com/repos/girder/large_image/issues/events{/number}","events_url":"https://api.github.com/repos/girder/large_image/events","assignees_url":"https://api.github.com/repos/girder/large_image/assignees{/user}","branches_url":"https://api.github.com/repos/girder/large_image/branches{/branch}","tags_url":"https://api.github.com/repos/girder/large_image/tags","blobs_url":"https://api.github.com/repos/girder/large_image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/girder/large_image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/girder/large_image/git/refs{/sha}","trees_url":"https://api.github.com/repos/girder/large_image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/girder/large_image/statuses/{sha}","languages_url":"https://api.github.com/repos/girder/large_image/languages","stargazers_url":"https://api.github.com/repos/girder/large_image/stargazers","contributors_url":"https://api.github.com/repos/girder/large_image/contributors","subscribers_url":"https://api.github.com/repos/girder/large_image/subscribers","subscription_url":"https://api.github.com/repos/girder/large_image/subscription","commits_url":"https://api.github.com/repos/girder/large_image/commits{/sha}","git_commits_url":"https://api.github.com/repos/girder/large_image/git/commits{/sha}","comments_url":"https://api.github.com/repos/girder/large_image/comments{/number}","issue_comment_url":"https://api.github.com/repos/girder/large_image/issues/comments{/number}","contents_url":"https://api.github.com/repos/girder/large_image/contents/{+path}","compare_url":"https://api.github.com/repos/girder/large_image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/girder/large_image/merges","archive_url":"https://api.github.com/repos/girder/large_image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/girder/large_image/downloads","issues_url":"https://api.github.com/repos/girder/large_image/issues{/number}","pulls_url":"https://api.github.com/repos/girder/large_image/pulls{/number}","milestones_url":"https://api.github.com/repos/girder/large_image/milestones{/number}","notifications_url":"https://api.github.com/repos/girder/large_image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/girder/large_image/labels{/name}","releases_url":"https://api.github.com/repos/girder/large_image/releases{/id}","deployments_url":"https://api.github.com/repos/girder/large_image/deployments","created_at":"2015-11-04T21:39:10Z","updated_at":"2017-01-23T18:48:20Z","pushed_at":"2017-02-17T06:01:55Z","git_url":"git://github.com/girder/large_image.git","ssh_url":"git@github.com:girder/large_image.git","clone_url":"https://github.com/girder/large_image.git","svn_url":"https://github.com/girder/large_image","homepage":null,"size":578,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":15,"forks":3,"open_issues":15,"watchers":3,"default_branch":"master"}},"base":{"label":"girder:master","ref":"master","sha":"2a370b898a0a7ad2f5499f95a38e7e4399745ec8","user":{"login":"girder","id":5150517,"avatar_url":"https://avatars.githubusercontent.com/u/5150517?v=3","gravatar_id":"","url":"https://api.github.com/users/girder","html_url":"https://github.com/girder","followers_url":"https://api.github.com/users/girder/followers","following_url":"https://api.github.com/users/girder/following{/other_user}","gists_url":"https://api.github.com/users/girder/gists{/gist_id}","starred_url":"https://api.github.com/users/girder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girder/subscriptions","organizations_url":"https://api.github.com/users/girder/orgs","repos_url":"https://api.github.com/users/girder/repos","events_url":"https://api.github.com/users/girder/events{/privacy}","received_events_url":"https://api.github.com/users/girder/received_events","type":"Organization","site_admin":false},"repo":{"id":45569214,"name":"large_image","full_name":"girder/large_image","owner":{"login":"girder","id":5150517,"avatar_url":"https://avatars.githubusercontent.com/u/5150517?v=3","gravatar_id":"","url":"https://api.github.com/users/girder","html_url":"https://github.com/girder","followers_url":"https://api.github.com/users/girder/followers","following_url":"https://api.github.com/users/girder/following{/other_user}","gists_url":"https://api.github.com/users/girder/gists{/gist_id}","starred_url":"https://api.github.com/users/girder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girder/subscriptions","organizations_url":"https://api.github.com/users/girder/orgs","repos_url":"https://api.github.com/users/girder/repos","events_url":"https://api.github.com/users/girder/events{/privacy}","received_events_url":"https://api.github.com/users/girder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/girder/large_image","description":"A Girder plugin to view multiresolution images, using several viewers.","fork":false,"url":"https://api.github.com/repos/girder/large_image","forks_url":"https://api.github.com/repos/girder/large_image/forks","keys_url":"https://api.github.com/repos/girder/large_image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/girder/large_image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/girder/large_image/teams","hooks_url":"https://api.github.com/repos/girder/large_image/hooks","issue_events_url":"https://api.github.com/repos/girder/large_image/issues/events{/number}","events_url":"https://api.github.com/repos/girder/large_image/events","assignees_url":"https://api.github.com/repos/girder/large_image/assignees{/user}","branches_url":"https://api.github.com/repos/girder/large_image/branches{/branch}","tags_url":"https://api.github.com/repos/girder/large_image/tags","blobs_url":"https://api.github.com/repos/girder/large_image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/girder/large_image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/girder/large_image/git/refs{/sha}","trees_url":"https://api.github.com/repos/girder/large_image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/girder/large_image/statuses/{sha}","languages_url":"https://api.github.com/repos/girder/large_image/languages","stargazers_url":"https://api.github.com/repos/girder/large_image/stargazers","contributors_url":"https://api.github.com/repos/girder/large_image/contributors","subscribers_url":"https://api.github.com/repos/girder/large_image/subscribers","subscription_url":"https://api.github.com/repos/girder/large_image/subscription","commits_url":"https://api.github.com/repos/girder/large_image/commits{/sha}","git_commits_url":"https://api.github.com/repos/girder/large_image/git/commits{/sha}","comments_url":"https://api.github.com/repos/girder/large_image/comments{/number}","issue_comment_url":"https://api.github.com/repos/girder/large_image/issues/comments{/number}","contents_url":"https://api.github.com/repos/girder/large_image/contents/{+path}","compare_url":"https://api.github.com/repos/girder/large_image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/girder/large_image/merges","archive_url":"https://api.github.com/repos/girder/large_image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/girder/large_image/downloads","issues_url":"https://api.github.com/repos/girder/large_image/issues{/number}","pulls_url":"https://api.github.com/repos/girder/large_image/pulls{/number}","milestones_url":"https://api.github.com/repos/girder/large_image/milestones{/number}","notifications_url":"https://api.github.com/repos/girder/large_image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/girder/large_image/labels{/name}","releases_url":"https://api.github.com/repos/girder/large_image/releases{/id}","deployments_url":"https://api.github.com/repos/girder/large_image/deployments","created_at":"2015-11-04T21:39:10Z","updated_at":"2017-01-23T18:48:20Z","pushed_at":"2017-02-17T06:01:55Z","git_url":"git://github.com/girder/large_image.git","ssh_url":"git@github.com:girder/large_image.git","clone_url":"https://github.com/girder/large_image.git","svn_url":"https://github.com/girder/large_image","homepage":null,"size":578,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":15,"forks":3,"open_issues":15,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/girder/large_image/pulls/143"},"html":{"href":"https://github.com/girder/large_image/pull/143"},"issue":{"href":"https://api.github.com/repos/girder/large_image/issues/143"},"comments":{"href":"https://api.github.com/repos/girder/large_image/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/girder/large_image/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/girder/large_image/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/girder/large_image/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/girder/large_image/statuses/b89c0058cba5c379842c7bef898509595566bcd6"}}}}
{"actor":{"display_login":"jbeezley"}}