Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…te lowercase pseudo selectors.
  • Loading branch information...
commit a79d09a905740ce299f57602144144eee9b03af2 1 parent 0fc3afb
@scottgonzalez scottgonzalez authored
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 );
};
Please sign in to comment.
Something went wrong with that request. Please try again.