Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit ae86b79

Browse files
author
Gabriel Schulhof
committed
Fixup: Comments
1 parent f0cb08d commit ae86b79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/widgets/pagecontainer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,9 @@ define( [
10351035
historyDir = settings.direction === "back" ? -1 : 1;
10361036
}
10371037

1038-
// Kill the keyboard.
1039-
// Wrap this in a try/catch block since IE9 throws "Unspecified error" if
1040-
// document.activeElement is undefined when we are in an IFrame.
1038+
// We blur the focussed element to cause the virtual keyboard to disappear, but we must
1039+
// wrap the retrieval of the focussed element in a try/catch block since IE9 throws
1040+
// "Unspecified error" if document.activeElement is undefined when we are in an IFrame.
10411041
try {
10421042
focusElement = this.document[ 0 ].activeElement;
10431043
}

js/widgets/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ define( [
2626
//>>excludeEnd("jqmBuildExclude");
2727
(function( $, undefined ) {
2828

29-
// Safely handle IE9 fragility
29+
// IE9 sometimes throws an exception when one attempts to access document.activeElement
3030
function getFocusElement( document ) {
3131
var focusElement;
3232

0 commit comments

Comments
 (0)