]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget: Create lowercase pseudo selectors. Fixes #8433 - Widget: Create lowercase...
authorScott González <scott.gonzalez@gmail.com>
Mon, 9 Jul 2012 20:02:43 +0000 (16:02 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 9 Jul 2012 20:02:43 +0000 (16:02 -0400)
tests/unit/widget/widget_core.js
ui/jquery.ui.widget.js

index 0296b9e4fa7e7a3c4af896089670902168e8501c..5efd91268a730cae3b735b8526c2c5abfe888e72 100644 (file)
@@ -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" );
 });
 
index 628b63bb0bcbe2c96c61815d391e284e46637b90..b5dfaa344d4463a7691672f1beeb34416389d16f 100644 (file)
@@ -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 );
        };