From 6064a5e0487428d53bd694dcebce952730992c46 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 15 Jul 2015 20:20:41 -0400 Subject: Core: Move tabbable into its own module Ref #9647 --- ui/core.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'ui/core.js') diff --git a/ui/core.js b/ui/core.js index 9e799a04c..d443346e8 100644 --- a/ui/core.js +++ b/ui/core.js @@ -31,6 +31,7 @@ "./plugin", "./safe-active-element", "./safe-blur", + "./tabbable", "./version" ], factory ); } else { @@ -78,12 +79,4 @@ $.fn.extend( { } } ); -$.extend( $.expr[ ":" ], { - tabbable: function( element ) { - var tabIndex = $.attr( element, "tabindex" ), - hasTabindex = tabIndex != null; - return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex ); - } -} ); - } ) ); -- cgit v1.2.3