Fix bug in contains() argument list #136
2
index.js
2
index.js
@@ -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) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user