mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Widget: Create lowercase pseudo selectors. Fixes #8433 - Widget: Create lowercase pseudo selectors.
This commit is contained in:
parent
0fc3afb2a1
commit
a79d09a905
@ -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" );
|
||||
});
|
||||
|
||||
|
2
ui/jquery.ui.widget.js
vendored
2
ui/jquery.ui.widget.js
vendored
@ -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 );
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user