Fix bug in contains() argument list #136

Merged
BehindTheMath merged 1 commits from fix/contains into master 2018-03-09 09:32:59 -05:00

View File

@@ -129,7 +129,7 @@ Pjax.prototype = {
this.log("load content", tmpEl.documentElement.attributes, tmpEl.documentElement.innerHTML.length) this.log("load content", tmpEl.documentElement.attributes, tmpEl.documentElement.innerHTML.length)
// Clear out any focused controls before inserting new page contents. // 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 { try {
document.activeElement.blur() document.activeElement.blur()
} catch (e) { } } catch (e) { }