update components

This commit is contained in:
Luke Pulverenti 2016-04-10 17:45:06 -04:00
parent 20a9c83bf6
commit 308b423658
5 changed files with 21 additions and 15 deletions

View file

@ -58,7 +58,8 @@ define([], function () {
return elem;
}
function isFocusableElementValid(elem) {
// Determines if a focusable element can be focused at a given point in time
function isCurrentlyFocusable(elem) {
if (elem.disabled) {
return false;
@ -84,7 +85,7 @@ define([], function () {
var elem = elems[i];
if (isFocusableElementValid(elem)) {
if (isCurrentlyFocusable(elem)) {
focusableElements.push(elem);
}
}
@ -203,7 +204,7 @@ define([], function () {
continue;
}
if (!isFocusableElementValid(curr)) {
if (!isCurrentlyFocusable(curr)) {
continue;
}
@ -480,6 +481,7 @@ define([], function () {
moveDown: function (sourceElement) {
nav(sourceElement, 3);
},
sendText: sendText
sendText: sendText,
isCurrentlyFocusable: isCurrentlyFocusable
};
});