Fix bug in contains() argument list
Fixes #135
This commit was merged in pull request #136.
This commit is contained in:
committed by
BehindTheMath
parent
05fa833169
commit
333ee344f4
2
index.js
2
index.js
@@ -129,7 +129,7 @@ Pjax.prototype = {
|
||||
this.log("load content", tmpEl.documentElement.attributes, tmpEl.documentElement.innerHTML.length)
|
||||
|
||||
// Clear out any focused controls before inserting new page contents.
|
||||
if (document.activeElement && contains(this.options.selectors, document.activeElement)) {
|
||||
if (document.activeElement && contains(document, this.options.selectors, document.activeElement)) {
|
||||
try {
|
||||
document.activeElement.blur()
|
||||
} catch (e) { }
|
||||
|
||||
Reference in New Issue
Block a user