From 82a7908ee9b7e768ac88ab26cffe9bf595285d79 Mon Sep 17 00:00:00 2001 From: Behind The Math Date: Thu, 8 Mar 2018 23:17:34 -0500 Subject: [PATCH] Fix bug in contains() argument list Fixes #135 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b8d34db..3e8e749 100644 --- a/index.js +++ b/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) { }