Skip to content

Commit

Permalink
Merge pull request #374 from defunkt/safe-blur
Browse files Browse the repository at this point in the history
IE fix for blurring of active element
  • Loading branch information
josh committed Apr 19, 2014
2 parents 67fbdce + b6d028d commit 66dd6bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ function pjax(options) {
}

// Clear out any focused controls before inserting new page contents.
document.activeElement.blur()
try {
document.activeElement.blur()
} catch (e) { }

if (container.title) document.title = container.title
context.html(container.contents)
Expand Down

0 comments on commit 66dd6bc

Please sign in to comment.