Skip to content
Browse files

Widget: Create lowercase pseudo selectors. Fixes #8433 - Widget: Crea…

…te lowercase pseudo selectors.
  • Loading branch information...
1 parent 0fc3afb commit a79d09a905740ce299f57602144144eee9b03af2 @scottgonzalez scottgonzalez committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/unit/widget/widget_core.js
  2. +1 −1 ui/jquery.ui.widget.js
View
2 tests/unit/widget/widget_core.js
@@ -83,7 +83,7 @@ test( "custom selector expression", function() {
var elem = $( "<div>" ).appendTo( "#qunit-fixture" );
$.widget( "ui.testWidget", {} );
elem.testWidget();
- deepEqual( $( ":ui-testWidget" )[0], elem[0] );
+ deepEqual( $( ":ui-testwidget" )[0], elem[0] );
elem.testWidget( "destroy" );
});
View
2 ui/jquery.ui.widget.js
@@ -36,7 +36,7 @@ $.widget = function( name, base, prototype ) {
}
// create selector for plugin
- $.expr[ ":" ][ fullName ] = function( elem ) {
+ $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
return !!$.data( elem, fullName );
};

0 comments on commit a79d09a

Please sign in to comment.
Something went wrong with that request. Please try again.