{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular.js/pulls/comments/37618915","id":37618915,"diff_hunk":"@@ -137,8 +163,22 @@ angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {\n     }\n \n     function addLink(url, text) {\n+      var key;\n+      var computedAttributes = {};\n       html.push('<a ');\n-      if (angular.isDefined(target)) {\n+      if (typeof attributes === 'object') {","path":"src/ngSanitize/filter/linky.js","position":84,"original_position":84,"commit_id":"56f0c37693d946bc2bcaf2651ff790112d75a2e2","original_commit_id":"56f0c37693d946bc2bcaf2651ff790112d75a2e2","user":{"login":"Narretz","id":1153097,"avatar_url":"https://avatars.githubusercontent.com/u/1153097?v=3","gravatar_id":"","url":"https://api.github.com/users/Narretz","html_url":"https://github.com/Narretz","followers_url":"https://api.github.com/users/Narretz/followers","following_url":"https://api.github.com/users/Narretz/following{/other_user}","gists_url":"https://api.github.com/users/Narretz/gists{/gist_id}","starred_url":"https://api.github.com/users/Narretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narretz/subscriptions","organizations_url":"https://api.github.com/users/Narretz/orgs","repos_url":"https://api.github.com/users/Narretz/repos","events_url":"https://api.github.com/users/Narretz/events{/privacy}","received_events_url":"https://api.github.com/users/Narretz/received_events","type":"User","site_admin":false},"body":"We can use `angular.isObject`","created_at":"2015-08-21T09:25:21Z","updated_at":"2015-08-21T09:25:21Z","html_url":"https://github.com/angular/angular.js/pull/12558#discussion_r37618915","pull_request_url":"https://api.github.com/repos/angular/angular.js/pulls/12558","_links":{"self":{"href":"https://api.github.com/repos/angular/angular.js/pulls/comments/37618915"},"html":{"href":"https://github.com/angular/angular.js/pull/12558#discussion_r37618915"},"pull_request":{"href":"https://api.github.com/repos/angular/angular.js/pulls/12558"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular.js/pulls/12558","id":42225300,"html_url":"https://github.com/angular/angular.js/pull/12558","diff_url":"https://github.com/angular/angular.js/pull/12558.diff","patch_url":"https://github.com/angular/angular.js/pull/12558.patch","issue_url":"https://api.github.com/repos/angular/angular.js/issues/12558","number":12558,"state":"open","locked":false,"title":"Add custom attributes to linky","user":{"login":"stianjensen","id":1413267,"avatar_url":"https://avatars.githubusercontent.com/u/1413267?v=3","gravatar_id":"","url":"https://api.github.com/users/stianjensen","html_url":"https://github.com/stianjensen","followers_url":"https://api.github.com/users/stianjensen/followers","following_url":"https://api.github.com/users/stianjensen/following{/other_user}","gists_url":"https://api.github.com/users/stianjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/stianjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stianjensen/subscriptions","organizations_url":"https://api.github.com/users/stianjensen/orgs","repos_url":"https://api.github.com/users/stianjensen/repos","events_url":"https://api.github.com/users/stianjensen/events{/privacy}","received_events_url":"https://api.github.com/users/stianjensen/received_events","type":"User","site_admin":false},"body":"Optional extra attributes may be defined either as:\r\n- a map of attributes and values\r\n- a function that takes the url as a parameter and returns a map","created_at":"2015-08-12T10:32:37Z","updated_at":"2015-08-21T09:25:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7758c0d86bdf2d39d319f6fa9e3e88998b3042b2","assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/27","html_url":"https://github.com/angular/angular.js/milestones/Backlog","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/27/labels","id":489171,"number":27,"title":"Backlog","description":"Holds the backlog of issues and pull requests that have been triaged.\r\n\r\nBefore assigning items to this milestone they should be labelled, at the very least with the correct \"type\" label (i.e. \"issue\", \"pr\", \"bug\", \"regression\", \"chore\", \"docs\", etc).  Preferably you should also check for duplicate issues/PRs, note CLA status and assign \"complexity\" and \"impact\" labels too.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":717,"closed_issues":939,"state":"open","created_at":"2013-11-18T23:30:35Z","updated_at":"2015-08-21T09:18:55Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/angular/angular.js/pulls/12558/commits","review_comments_url":"https://api.github.com/repos/angular/angular.js/pulls/12558/comments","review_comment_url":"https://api.github.com/repos/angular/angular.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12558/comments","statuses_url":"https://api.github.com/repos/angular/angular.js/statuses/56f0c37693d946bc2bcaf2651ff790112d75a2e2","head":{"label":"stianjensen:linky-nofollow","ref":"linky-nofollow","sha":"56f0c37693d946bc2bcaf2651ff790112d75a2e2","user":{"login":"stianjensen","id":1413267,"avatar_url":"https://avatars.githubusercontent.com/u/1413267?v=3","gravatar_id":"","url":"https://api.github.com/users/stianjensen","html_url":"https://github.com/stianjensen","followers_url":"https://api.github.com/users/stianjensen/followers","following_url":"https://api.github.com/users/stianjensen/following{/other_user}","gists_url":"https://api.github.com/users/stianjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/stianjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stianjensen/subscriptions","organizations_url":"https://api.github.com/users/stianjensen/orgs","repos_url":"https://api.github.com/users/stianjensen/repos","events_url":"https://api.github.com/users/stianjensen/events{/privacy}","received_events_url":"https://api.github.com/users/stianjensen/received_events","type":"User","site_admin":false},"repo":{"id":40593901,"name":"angular.js","full_name":"stianjensen/angular.js","owner":{"login":"stianjensen","id":1413267,"avatar_url":"https://avatars.githubusercontent.com/u/1413267?v=3","gravatar_id":"","url":"https://api.github.com/users/stianjensen","html_url":"https://github.com/stianjensen","followers_url":"https://api.github.com/users/stianjensen/followers","following_url":"https://api.github.com/users/stianjensen/following{/other_user}","gists_url":"https://api.github.com/users/stianjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/stianjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stianjensen/subscriptions","organizations_url":"https://api.github.com/users/stianjensen/orgs","repos_url":"https://api.github.com/users/stianjensen/repos","events_url":"https://api.github.com/users/stianjensen/events{/privacy}","received_events_url":"https://api.github.com/users/stianjensen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stianjensen/angular.js","description":"HTML enhanced for web apps","fork":true,"url":"https://api.github.com/repos/stianjensen/angular.js","forks_url":"https://api.github.com/repos/stianjensen/angular.js/forks","keys_url":"https://api.github.com/repos/stianjensen/angular.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stianjensen/angular.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stianjensen/angular.js/teams","hooks_url":"https://api.github.com/repos/stianjensen/angular.js/hooks","issue_events_url":"https://api.github.com/repos/stianjensen/angular.js/issues/events{/number}","events_url":"https://api.github.com/repos/stianjensen/angular.js/events","assignees_url":"https://api.github.com/repos/stianjensen/angular.js/assignees{/user}","branches_url":"https://api.github.com/repos/stianjensen/angular.js/branches{/branch}","tags_url":"https://api.github.com/repos/stianjensen/angular.js/tags","blobs_url":"https://api.github.com/repos/stianjensen/angular.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stianjensen/angular.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stianjensen/angular.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/stianjensen/angular.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stianjensen/angular.js/statuses/{sha}","languages_url":"https://api.github.com/repos/stianjensen/angular.js/languages","stargazers_url":"https://api.github.com/repos/stianjensen/angular.js/stargazers","contributors_url":"https://api.github.com/repos/stianjensen/angular.js/contributors","subscribers_url":"https://api.github.com/repos/stianjensen/angular.js/subscribers","subscription_url":"https://api.github.com/repos/stianjensen/angular.js/subscription","commits_url":"https://api.github.com/repos/stianjensen/angular.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/stianjensen/angular.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/stianjensen/angular.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/stianjensen/angular.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/stianjensen/angular.js/contents/{+path}","compare_url":"https://api.github.com/repos/stianjensen/angular.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stianjensen/angular.js/merges","archive_url":"https://api.github.com/repos/stianjensen/angular.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stianjensen/angular.js/downloads","issues_url":"https://api.github.com/repos/stianjensen/angular.js/issues{/number}","pulls_url":"https://api.github.com/repos/stianjensen/angular.js/pulls{/number}","milestones_url":"https://api.github.com/repos/stianjensen/angular.js/milestones{/number}","notifications_url":"https://api.github.com/repos/stianjensen/angular.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stianjensen/angular.js/labels{/name}","releases_url":"https://api.github.com/repos/stianjensen/angular.js/releases{/id}","created_at":"2015-08-12T10:03:20Z","updated_at":"2015-08-12T10:03:37Z","pushed_at":"2015-08-20T21:33:46Z","git_url":"git://github.com/stianjensen/angular.js.git","ssh_url":"git@github.com:stianjensen/angular.js.git","clone_url":"https://github.com/stianjensen/angular.js.git","svn_url":"https://github.com/stianjensen/angular.js","homepage":"http://angularjs.org","size":69954,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"728f7e2a85397ac684e1b8d3472f0a1f437c3ad9","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":460078,"name":"angular.js","full_name":"angular/angular.js","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular.js","description":"HTML enhanced for web apps","fork":false,"url":"https://api.github.com/repos/angular/angular.js","forks_url":"https://api.github.com/repos/angular/angular.js/forks","keys_url":"https://api.github.com/repos/angular/angular.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular.js/teams","hooks_url":"https://api.github.com/repos/angular/angular.js/hooks","issue_events_url":"https://api.github.com/repos/angular/angular.js/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular.js/events","assignees_url":"https://api.github.com/repos/angular/angular.js/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular.js/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular.js/tags","blobs_url":"https://api.github.com/repos/angular/angular.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular.js/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular.js/languages","stargazers_url":"https://api.github.com/repos/angular/angular.js/stargazers","contributors_url":"https://api.github.com/repos/angular/angular.js/contributors","subscribers_url":"https://api.github.com/repos/angular/angular.js/subscribers","subscription_url":"https://api.github.com/repos/angular/angular.js/subscription","commits_url":"https://api.github.com/repos/angular/angular.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular.js/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular.js/merges","archive_url":"https://api.github.com/repos/angular/angular.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular.js/downloads","issues_url":"https://api.github.com/repos/angular/angular.js/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular.js/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular.js/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular.js/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular.js/releases{/id}","created_at":"2010-01-06T00:34:37Z","updated_at":"2015-08-21T09:00:40Z","pushed_at":"2015-08-21T08:25:13Z","git_url":"git://github.com/angular/angular.js.git","ssh_url":"git@github.com:angular/angular.js.git","clone_url":"https://github.com/angular/angular.js.git","svn_url":"https://github.com/angular/angular.js","homepage":"http://angularjs.org","size":258117,"stargazers_count":41807,"watchers_count":41807,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18469,"mirror_url":null,"open_issues_count":1273,"forks":18469,"open_issues":1273,"watchers":41807,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular.js/pulls/12558"},"html":{"href":"https://github.com/angular/angular.js/pull/12558"},"issue":{"href":"https://api.github.com/repos/angular/angular.js/issues/12558"},"comments":{"href":"https://api.github.com/repos/angular/angular.js/issues/12558/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular.js/pulls/12558/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular.js/pulls/12558/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular.js/statuses/56f0c37693d946bc2bcaf2651ff790112d75a2e2"}}}}