{"action":"created","comment":{"url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/comments/35139501","id":35139501,"diff_hunk":"@@ -292,10 +292,16 @@ function pjax(options) {\n       window.history.replaceState(pjax.state, container.title, container.url)\n     }\n \n+    // Only blur the focus if the focused element is within the container.\n+    var blurFocus = $.contains(options.container, $(':focus'));","path":"jquery.pjax.js","position":null,"original_position":5,"commit_id":"e880fd0564cb6af24e34d60185fc8308f6688db7","original_commit_id":"f3026277f389c11bba260b7d4b0e10074ae3ad9b","user":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"body":"Done and done.","created_at":"2015-07-21T18:52:29Z","updated_at":"2015-07-21T18:52:29Z","html_url":"https://github.com/defunkt/jquery-pjax/pull/545#discussion_r35139501","pull_request_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545","_links":{"self":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/comments/35139501"},"html":{"href":"https://github.com/defunkt/jquery-pjax/pull/545#discussion_r35139501"},"pull_request":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545"}}},"pull_request":{"url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545","id":40417847,"html_url":"https://github.com/defunkt/jquery-pjax/pull/545","diff_url":"https://github.com/defunkt/jquery-pjax/pull/545.diff","patch_url":"https://github.com/defunkt/jquery-pjax/pull/545.patch","issue_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/545","number":545,"state":"open","locked":false,"title":"Add blurFocus option to disable bluring the focus of existing elements.","user":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"body":"This change adds a `blurFocus` option that disables the focus blurring that occurs on existing elements when loading content. This can be useful if using PJAX to reload the contents of a search page, for instance.\r\n\r\nMultiple other people requested this feature [back in 2013 when the blurring was introduced](https://github.com/defunkt/jquery-pjax/pull/300#commitcomment-3621248), and additionally so [on a fork](https://github.com/yiisoft/jquery-pjax/issues/19) of your project.","created_at":"2015-07-21T02:48:00Z","updated_at":"2015-07-21T18:52:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"925335866114bab38d41d9b74773c2475df431ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545/commits","review_comments_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545/comments","review_comment_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/comments{/number}","comments_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/545/comments","statuses_url":"https://api.github.com/repos/defunkt/jquery-pjax/statuses/e880fd0564cb6af24e34d60185fc8308f6688db7","head":{"label":"slimsag:master","ref":"master","sha":"e880fd0564cb6af24e34d60185fc8308f6688db7","user":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"repo":{"id":39418723,"name":"jquery-pjax","full_name":"slimsag/jquery-pjax","owner":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slimsag/jquery-pjax","description":"pushState + ajax = pjax","fork":true,"url":"https://api.github.com/repos/slimsag/jquery-pjax","forks_url":"https://api.github.com/repos/slimsag/jquery-pjax/forks","keys_url":"https://api.github.com/repos/slimsag/jquery-pjax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slimsag/jquery-pjax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slimsag/jquery-pjax/teams","hooks_url":"https://api.github.com/repos/slimsag/jquery-pjax/hooks","issue_events_url":"https://api.github.com/repos/slimsag/jquery-pjax/issues/events{/number}","events_url":"https://api.github.com/repos/slimsag/jquery-pjax/events","assignees_url":"https://api.github.com/repos/slimsag/jquery-pjax/assignees{/user}","branches_url":"https://api.github.com/repos/slimsag/jquery-pjax/branches{/branch}","tags_url":"https://api.github.com/repos/slimsag/jquery-pjax/tags","blobs_url":"https://api.github.com/repos/slimsag/jquery-pjax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slimsag/jquery-pjax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slimsag/jquery-pjax/git/refs{/sha}","trees_url":"https://api.github.com/repos/slimsag/jquery-pjax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slimsag/jquery-pjax/statuses/{sha}","languages_url":"https://api.github.com/repos/slimsag/jquery-pjax/languages","stargazers_url":"https://api.github.com/repos/slimsag/jquery-pjax/stargazers","contributors_url":"https://api.github.com/repos/slimsag/jquery-pjax/contributors","subscribers_url":"https://api.github.com/repos/slimsag/jquery-pjax/subscribers","subscription_url":"https://api.github.com/repos/slimsag/jquery-pjax/subscription","commits_url":"https://api.github.com/repos/slimsag/jquery-pjax/commits{/sha}","git_commits_url":"https://api.github.com/repos/slimsag/jquery-pjax/git/commits{/sha}","comments_url":"https://api.github.com/repos/slimsag/jquery-pjax/comments{/number}","issue_comment_url":"https://api.github.com/repos/slimsag/jquery-pjax/issues/comments{/number}","contents_url":"https://api.github.com/repos/slimsag/jquery-pjax/contents/{+path}","compare_url":"https://api.github.com/repos/slimsag/jquery-pjax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slimsag/jquery-pjax/merges","archive_url":"https://api.github.com/repos/slimsag/jquery-pjax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slimsag/jquery-pjax/downloads","issues_url":"https://api.github.com/repos/slimsag/jquery-pjax/issues{/number}","pulls_url":"https://api.github.com/repos/slimsag/jquery-pjax/pulls{/number}","milestones_url":"https://api.github.com/repos/slimsag/jquery-pjax/milestones{/number}","notifications_url":"https://api.github.com/repos/slimsag/jquery-pjax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slimsag/jquery-pjax/labels{/name}","releases_url":"https://api.github.com/repos/slimsag/jquery-pjax/releases{/id}","created_at":"2015-07-21T02:09:46Z","updated_at":"2015-07-21T02:09:49Z","pushed_at":"2015-07-21T18:52:22Z","git_url":"git://github.com/slimsag/jquery-pjax.git","ssh_url":"git@github.com:slimsag/jquery-pjax.git","clone_url":"https://github.com/slimsag/jquery-pjax.git","svn_url":"https://github.com/slimsag/jquery-pjax","homepage":"http://pjax.heroku.com","size":2566,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"defunkt:master","ref":"master","sha":"c70ffe22a9e2d5304f85bee719cf0571956859e3","user":{"login":"defunkt","id":2,"avatar_url":"https://avatars.githubusercontent.com/u/2?v=3","gravatar_id":"","url":"https://api.github.com/users/defunkt","html_url":"https://github.com/defunkt","followers_url":"https://api.github.com/users/defunkt/followers","following_url":"https://api.github.com/users/defunkt/following{/other_user}","gists_url":"https://api.github.com/users/defunkt/gists{/gist_id}","starred_url":"https://api.github.com/users/defunkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunkt/subscriptions","organizations_url":"https://api.github.com/users/defunkt/orgs","repos_url":"https://api.github.com/users/defunkt/repos","events_url":"https://api.github.com/users/defunkt/events{/privacy}","received_events_url":"https://api.github.com/users/defunkt/received_events","type":"User","site_admin":true},"repo":{"id":1413492,"name":"jquery-pjax","full_name":"defunkt/jquery-pjax","owner":{"login":"defunkt","id":2,"avatar_url":"https://avatars.githubusercontent.com/u/2?v=3","gravatar_id":"","url":"https://api.github.com/users/defunkt","html_url":"https://github.com/defunkt","followers_url":"https://api.github.com/users/defunkt/followers","following_url":"https://api.github.com/users/defunkt/following{/other_user}","gists_url":"https://api.github.com/users/defunkt/gists{/gist_id}","starred_url":"https://api.github.com/users/defunkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunkt/subscriptions","organizations_url":"https://api.github.com/users/defunkt/orgs","repos_url":"https://api.github.com/users/defunkt/repos","events_url":"https://api.github.com/users/defunkt/events{/privacy}","received_events_url":"https://api.github.com/users/defunkt/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/defunkt/jquery-pjax","description":"pushState + ajax = pjax","fork":false,"url":"https://api.github.com/repos/defunkt/jquery-pjax","forks_url":"https://api.github.com/repos/defunkt/jquery-pjax/forks","keys_url":"https://api.github.com/repos/defunkt/jquery-pjax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/defunkt/jquery-pjax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/defunkt/jquery-pjax/teams","hooks_url":"https://api.github.com/repos/defunkt/jquery-pjax/hooks","issue_events_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/events{/number}","events_url":"https://api.github.com/repos/defunkt/jquery-pjax/events","assignees_url":"https://api.github.com/repos/defunkt/jquery-pjax/assignees{/user}","branches_url":"https://api.github.com/repos/defunkt/jquery-pjax/branches{/branch}","tags_url":"https://api.github.com/repos/defunkt/jquery-pjax/tags","blobs_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/refs{/sha}","trees_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/defunkt/jquery-pjax/statuses/{sha}","languages_url":"https://api.github.com/repos/defunkt/jquery-pjax/languages","stargazers_url":"https://api.github.com/repos/defunkt/jquery-pjax/stargazers","contributors_url":"https://api.github.com/repos/defunkt/jquery-pjax/contributors","subscribers_url":"https://api.github.com/repos/defunkt/jquery-pjax/subscribers","subscription_url":"https://api.github.com/repos/defunkt/jquery-pjax/subscription","commits_url":"https://api.github.com/repos/defunkt/jquery-pjax/commits{/sha}","git_commits_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/commits{/sha}","comments_url":"https://api.github.com/repos/defunkt/jquery-pjax/comments{/number}","issue_comment_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/comments{/number}","contents_url":"https://api.github.com/repos/defunkt/jquery-pjax/contents/{+path}","compare_url":"https://api.github.com/repos/defunkt/jquery-pjax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/defunkt/jquery-pjax/merges","archive_url":"https://api.github.com/repos/defunkt/jquery-pjax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/defunkt/jquery-pjax/downloads","issues_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues{/number}","pulls_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls{/number}","milestones_url":"https://api.github.com/repos/defunkt/jquery-pjax/milestones{/number}","notifications_url":"https://api.github.com/repos/defunkt/jquery-pjax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/defunkt/jquery-pjax/labels{/name}","releases_url":"https://api.github.com/repos/defunkt/jquery-pjax/releases{/id}","created_at":"2011-02-26T02:44:18Z","updated_at":"2015-07-21T16:52:16Z","pushed_at":"2015-07-21T18:52:23Z","git_url":"git://github.com/defunkt/jquery-pjax.git","ssh_url":"git@github.com:defunkt/jquery-pjax.git","clone_url":"https://github.com/defunkt/jquery-pjax.git","svn_url":"https://github.com/defunkt/jquery-pjax","homepage":"http://pjax.heroku.com","size":2566,"stargazers_count":11716,"watchers_count":11716,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1386,"mirror_url":null,"open_issues_count":58,"forks":1386,"open_issues":58,"watchers":11716,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545"},"html":{"href":"https://github.com/defunkt/jquery-pjax/pull/545"},"issue":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/issues/545"},"comments":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/issues/545/comments"},"review_comments":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545/comments"},"review_comment":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/545/commits"},"statuses":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/statuses/e880fd0564cb6af24e34d60185fc8308f6688db7"}}}}