Fix bug in contains() argument list

Fixes #135
This commit is contained in:
Behind The Math committed 2018-03-08 23:17:34 -05:00
1 parent 05fa833169
commit 82a7908ee9
1 file changed
+1 -1
+1 -1
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) { }