From: Scott González Date: Thu, 19 Apr 2012 14:29:55 +0000 (-0400) Subject: Menu: Lint. X-Git-Tag: 1.9.0m8~128 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72a0f5c5129b77c6e06c9936d290e89bd35a9eaa;p=jquery-ui.git Menu: Lint. --- diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index b991b30e8..abc759f1a 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -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;