Skip to content

Commit

Permalink
Revert "fix #917 Remove unnecessary body focus in aria.templates.Temp…
Browse files Browse the repository at this point in the history
…lateCtxt.$focus"

This reverts commit 8fcb182.
  • Loading branch information
jakub-g committed Jan 24, 2014
1 parent 847519d commit 82b8cbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aria/templates/TemplateCtxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,9 @@
* @implements aria.templates.ITemplate
*/
$focus : function (idArray) {
if (aria.core.Browser.isIE7 || aria.core.Browser.isIE8) {
Aria.$window.document.body.focus();
}
var idToFocus;
if (aria.utils.Type.isArray(idArray)) {
idArray = idArray.slice(0);
Expand Down
3 changes: 3 additions & 0 deletions test/aria/templates/keyboardNavigation/TableNavTestCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Aria.classDefinition({
},
runTemplateTest : function () {

if (aria.core.Browser.isIE8 || aria.core.Browser.isIE7) {
this.notifyTemplateTestEnd(); // FIXME!! PTR 06248406
}
// clean what was before
this._disposeTestTemplate();

Expand Down

0 comments on commit 82b8cbf

Please sign in to comment.