mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Lint.
This commit is contained in:
parent
0a5a9090f8
commit
72a0f5c512
4
ui/jquery.ui.menu.js
vendored
4
ui/jquery.ui.menu.js
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user