diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-01-01 03:07:52 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-01-01 03:07:52 +0000 |
commit | d9a5b09b0018e09a653884926662f80e42206010 (patch) | |
tree | b376744992d27c8199cf1ab44597a571e0995b5e | |
parent | b1326315bc91a7f53ac8b21e531c10ec4a68dcaa (diff) | |
download | jquery-ui-d9a5b09b0018e09a653884926662f80e42206010.tar.gz jquery-ui-d9a5b09b0018e09a653884926662f80e42206010.zip |
Core: Changed parameter names for selectors.
-rw-r--r-- | ui/ui.core.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 19274e7cc..0eb59bab5 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -209,34 +209,34 @@ $.fn.extend({ //Additional selectors $.extend($.expr[':'], { - data: function(a, i, m) { - return !!$.data(a, m[3]); + data: function(elem, i, match) { + return !!$.data(elem, match[3]); }, // TODO: add support for object, area - tabbable: function(a, i, m) { + tabbable: function(elem) { - var nodeName = a.nodeName.toLowerCase(); + var nodeName = elem.nodeName.toLowerCase(); function isVisible(element) { return !($(element).is(':hidden') || $(element).parents(':hidden').length); } return ( // in tab order - a.tabIndex >= 0 && + elem.tabIndex >= 0 && ( // filter node types that participate in the tab order // anchor tag - ('a' == nodeName && a.href) || + ('a' == nodeName && elem.href) || // enabled form element (/input|select|textarea|button/.test(nodeName) && - 'hidden' != a.type && !a.disabled) + 'hidden' != elem.type && !elem.disabled) ) && // visible on page - isVisible(a) + isVisible(elem) ); } |