(function (factory){ if (typeof define === "function" && define.amd) { define(["jquery", "./version", "./focusable"] , factory); } else { factory(jQuery); } } (function ($){ return $.extend($.expr.pseudos, { tabbable: function (element){ var tabIndex = $.attr(element, "tabindex"), hasTabindex = tabIndex != null ; return (!hasTabindex || tabIndex >= 0) && $.ui.focusable(element, hasTabindex); } } ); } ));