Skip to content

Commit

Permalink
Widget: Create lowercase pseudo selectors. Fixes #8433 - Widget: Crea…
Browse files Browse the repository at this point in the history
…te lowercase pseudo selectors.
  • Loading branch information
scottgonzalez committed Jul 9, 2012
1 parent 0fc3afb commit a79d09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/widget/widget_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
});

Expand Down
2 changes: 1 addition & 1 deletion ui/jquery.ui.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
};

Expand Down

0 comments on commit a79d09a

Please sign in to comment.