]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Lint.
authorScott González <scott.gonzalez@gmail.com>
Thu, 19 Apr 2012 14:29:55 +0000 (10:29 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 19 Apr 2012 14:29:55 +0000 (10:29 -0400)
ui/jquery.ui.menu.js

index b991b30e8b585316be65435b7692369434c8deb6..abc759f1a1698b3ad3fe9c2212a6729d70869101 100644 (file)
@@ -70,7 +70,7 @@ $.widget( "ui.menu", {
                        },
                        "click .ui-menu-item:has(a)": function( event ) {
                                var target = $( event.target );
-                               if ( target[0] != currentEventTarget ) {
+                               if ( target[0] !== currentEventTarget ) {
                                        currentEventTarget = target[0];
                                        target.one( "click.menu", function( event ) {
                                                currentEventTarget = null;
@@ -305,7 +305,7 @@ $.widget( "ui.menu", {
 
        focus: function( event, item ) {
                var nested, borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;
-               this.blur( event, event && event.type == "focus" );
+               this.blur( event, event && event.type === "focus" );
 
                if ( this._hasScroll() ) {
                        borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0;