r945 - branches/experimental/tabbable
Author: scott.gonzalez
Date: Sat Nov 15 05:54:10 2008
New Revision: 945
Modified:
branches/experimental/tabbable/ui.core.js
Log:
Tabbable: Potential improvement for getTabIndex().
Modified: branches/experimental/tabbable/ui.core.js
==============================================================================
--- branches/experimental/tabbable/ui.core.js (original)
+++ branches/experimental/tabbable/ui.core.js Sat Nov 15 05:54:10 2008
@@ -4,6 +4,13 @@
? 'tabIndex'
: 'tabindex');
+//
+//// Can this replace hasTabindexAttr and getTabIndex below?
+//function getTabIndex(element) {
+// var attr = elem.getAttributeNode(normalizedTabindex);
+// return attr && attr.specified && attr.value || undefined;
+//}
+
function hasTabindexAttr(element) {
var attributeNode = element.getAttributeNode(normalizedTabindex);
return attributeNode ? attributeNode.specified : false;