{"action":"created","comment":{"url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/comments/42503135","id":42503135,"diff_hunk":"@@ -0,0 +1,70 @@\n+define([\n+\t\"../has\"\n+], function (has) {\n+\n+\tvar SPRITE_CONTAINER_ID = 'requirejs-dplugins-icons';\n+\n+\treturn {\n+\t\tcache: {}, // stores all required paths\n+\t\ticons: [], // stores markup of all fetched icons\n+\t\tspriteContainer: null, // DOM element, parent of svg sprite\n+\t\tgetFilename: getFilename,\n+\t\tcreateContainer: createContainer,\n+\t\textractIcon: extractIcon,\n+\t\tgenerateSprite: generateSprite\n+\t};\n+\n+\t// takes a path and returns the filename\n+\tfunction getFilename(filepath) {\n+\t\treturn filepath.replace(/.*\\/(.*)\\.svg$/g, \"$1\");\n+\t}\n+\n+\t// Creates the sprite container. This method should be executed once only.\n+\tfunction createContainer() {\n+\t\tvar div = document.createElement(\"div\");\n+\t\tdiv.setAttribute(\"id\", SPRITE_CONTAINER_ID);\n+\t\tdocument.body.appendChild(div);\n+\t\treturn div;\n+\t}\n+\n+\t// Makes a symbol out of an svg icon\n+\tfunction extractIcon(svg, filename, cheerio /* SVG parser */) {","path":"icon/common.js","position":null,"original_position":31,"commit_id":"eb3ca060b94c94fb8cba79176c78a07c53cb263e","original_commit_id":"9727bf828d54f8ffcce6143e489331e6a2a34034","user":{"login":"tkrugg","id":2982512,"avatar_url":"https://avatars.githubusercontent.com/u/2982512?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrugg","html_url":"https://github.com/tkrugg","followers_url":"https://api.github.com/users/tkrugg/followers","following_url":"https://api.github.com/users/tkrugg/following{/other_user}","gists_url":"https://api.github.com/users/tkrugg/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrugg/subscriptions","organizations_url":"https://api.github.com/users/tkrugg/orgs","repos_url":"https://api.github.com/users/tkrugg/repos","events_url":"https://api.github.com/users/tkrugg/events{/privacy}","received_events_url":"https://api.github.com/users/tkrugg/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-10-20T14:34:04Z","updated_at":"2015-10-20T14:34:04Z","html_url":"https://github.com/ibm-js/requirejs-dplugins/pull/26#discussion_r42503135","pull_request_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/comments/42503135"},"html":{"href":"https://github.com/ibm-js/requirejs-dplugins/pull/26#discussion_r42503135"},"pull_request":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26","id":47653244,"html_url":"https://github.com/ibm-js/requirejs-dplugins/pull/26","diff_url":"https://github.com/ibm-js/requirejs-dplugins/pull/26.diff","patch_url":"https://github.com/ibm-js/requirejs-dplugins/pull/26.patch","issue_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/issues/26","number":26,"state":"open","locked":false,"title":"added icon plugin","user":{"login":"tkrugg","id":2982512,"avatar_url":"https://avatars.githubusercontent.com/u/2982512?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrugg","html_url":"https://github.com/tkrugg","followers_url":"https://api.github.com/users/tkrugg/followers","following_url":"https://api.github.com/users/tkrugg/following{/other_user}","gists_url":"https://api.github.com/users/tkrugg/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrugg/subscriptions","organizations_url":"https://api.github.com/users/tkrugg/orgs","repos_url":"https://api.github.com/users/tkrugg/repos","events_url":"https://api.github.com/users/tkrugg/events{/privacy}","received_events_url":"https://api.github.com/users/tkrugg/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-14T12:38:13Z","updated_at":"2015-10-20T14:34:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"451ae817177c60ff46b1f7fd76c550f328122107","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26/commits","review_comments_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26/comments","review_comment_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/issues/26/comments","statuses_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/statuses/eb3ca060b94c94fb8cba79176c78a07c53cb263e","head":{"label":"tkrugg:icon","ref":"icon","sha":"eb3ca060b94c94fb8cba79176c78a07c53cb263e","user":{"login":"tkrugg","id":2982512,"avatar_url":"https://avatars.githubusercontent.com/u/2982512?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrugg","html_url":"https://github.com/tkrugg","followers_url":"https://api.github.com/users/tkrugg/followers","following_url":"https://api.github.com/users/tkrugg/following{/other_user}","gists_url":"https://api.github.com/users/tkrugg/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrugg/subscriptions","organizations_url":"https://api.github.com/users/tkrugg/orgs","repos_url":"https://api.github.com/users/tkrugg/repos","events_url":"https://api.github.com/users/tkrugg/events{/privacy}","received_events_url":"https://api.github.com/users/tkrugg/received_events","type":"User","site_admin":false},"repo":{"id":30539130,"name":"requirejs-dplugins","full_name":"tkrugg/requirejs-dplugins","owner":{"login":"tkrugg","id":2982512,"avatar_url":"https://avatars.githubusercontent.com/u/2982512?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrugg","html_url":"https://github.com/tkrugg","followers_url":"https://api.github.com/users/tkrugg/followers","following_url":"https://api.github.com/users/tkrugg/following{/other_user}","gists_url":"https://api.github.com/users/tkrugg/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrugg/subscriptions","organizations_url":"https://api.github.com/users/tkrugg/orgs","repos_url":"https://api.github.com/users/tkrugg/repos","events_url":"https://api.github.com/users/tkrugg/events{/privacy}","received_events_url":"https://api.github.com/users/tkrugg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tkrugg/requirejs-dplugins","description":"AMD plugins for RequireJS","fork":true,"url":"https://api.github.com/repos/tkrugg/requirejs-dplugins","forks_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/forks","keys_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/teams","hooks_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/hooks","issue_events_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/issues/events{/number}","events_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/events","assignees_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/assignees{/user}","branches_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/branches{/branch}","tags_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/tags","blobs_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/statuses/{sha}","languages_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/languages","stargazers_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/stargazers","contributors_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/contributors","subscribers_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/subscribers","subscription_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/subscription","commits_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/contents/{+path}","compare_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/merges","archive_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/downloads","issues_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/issues{/number}","pulls_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/pulls{/number}","milestones_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/milestones{/number}","notifications_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/labels{/name}","releases_url":"https://api.github.com/repos/tkrugg/requirejs-dplugins/releases{/id}","created_at":"2015-02-09T14:17:26Z","updated_at":"2015-02-09T14:17:26Z","pushed_at":"2015-10-19T16:42:08Z","git_url":"git://github.com/tkrugg/requirejs-dplugins.git","ssh_url":"git@github.com:tkrugg/requirejs-dplugins.git","clone_url":"https://github.com/tkrugg/requirejs-dplugins.git","svn_url":"https://github.com/tkrugg/requirejs-dplugins","homepage":"","size":437,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ibm-js:master","ref":"master","sha":"6f6a065504bb96b63f06de71f3174964193e88f1","user":{"login":"ibm-js","id":3503805,"avatar_url":"https://avatars.githubusercontent.com/u/3503805?v=3","gravatar_id":"","url":"https://api.github.com/users/ibm-js","html_url":"https://github.com/ibm-js","followers_url":"https://api.github.com/users/ibm-js/followers","following_url":"https://api.github.com/users/ibm-js/following{/other_user}","gists_url":"https://api.github.com/users/ibm-js/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-js/subscriptions","organizations_url":"https://api.github.com/users/ibm-js/orgs","repos_url":"https://api.github.com/users/ibm-js/repos","events_url":"https://api.github.com/users/ibm-js/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-js/received_events","type":"Organization","site_admin":false},"repo":{"id":14148619,"name":"requirejs-dplugins","full_name":"ibm-js/requirejs-dplugins","owner":{"login":"ibm-js","id":3503805,"avatar_url":"https://avatars.githubusercontent.com/u/3503805?v=3","gravatar_id":"","url":"https://api.github.com/users/ibm-js","html_url":"https://github.com/ibm-js","followers_url":"https://api.github.com/users/ibm-js/followers","following_url":"https://api.github.com/users/ibm-js/following{/other_user}","gists_url":"https://api.github.com/users/ibm-js/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-js/subscriptions","organizations_url":"https://api.github.com/users/ibm-js/orgs","repos_url":"https://api.github.com/users/ibm-js/repos","events_url":"https://api.github.com/users/ibm-js/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-js/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ibm-js/requirejs-dplugins","description":"AMD plugins for RequireJS","fork":false,"url":"https://api.github.com/repos/ibm-js/requirejs-dplugins","forks_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/forks","keys_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/teams","hooks_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/hooks","issue_events_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/issues/events{/number}","events_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/events","assignees_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/assignees{/user}","branches_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/branches{/branch}","tags_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/tags","blobs_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/statuses/{sha}","languages_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/languages","stargazers_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/stargazers","contributors_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/contributors","subscribers_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/subscribers","subscription_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/subscription","commits_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/contents/{+path}","compare_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/merges","archive_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/downloads","issues_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/issues{/number}","pulls_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls{/number}","milestones_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/milestones{/number}","notifications_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/labels{/name}","releases_url":"https://api.github.com/repos/ibm-js/requirejs-dplugins/releases{/id}","created_at":"2013-11-05T17:29:21Z","updated_at":"2015-10-15T08:51:51Z","pushed_at":"2015-10-19T16:42:08Z","git_url":"git://github.com/ibm-js/requirejs-dplugins.git","ssh_url":"git@github.com:ibm-js/requirejs-dplugins.git","clone_url":"https://github.com/ibm-js/requirejs-dplugins.git","svn_url":"https://github.com/ibm-js/requirejs-dplugins","homepage":"http://ibm-js.github.io/requirejs-dplugins/","size":958,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":10,"forks":10,"open_issues":10,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26"},"html":{"href":"https://github.com/ibm-js/requirejs-dplugins/pull/26"},"issue":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/issues/26"},"comments":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/ibm-js/requirejs-dplugins/statuses/eb3ca060b94c94fb8cba79176c78a07c53cb263e"}}}}