Fix bug in contains() argument list

Fixes #135
This commit was merged in pull request #136.
This commit is contained in:
Behind The Math
2018-03-08 23:17:34 -05:00
committed by BehindTheMath
parent 05fa833169
commit 333ee344f4

View File

@@ -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) { }