Make WordPress Core

Changeset 38613


Ignore:
Timestamp:
09/15/2016 04:55:19 PM (8 years ago)
Author:
swissspidy
Message:

Menus: Use strict comparison for the condition added in [38612].

See #37846.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/nav-menu.js

    r38612 r38613  
    8585                            depth = t.menuItemDepth(),
    8686                            newDepth = depth + change;
     87
    8788                        t.removeClass( 'menu-item-depth-'+ depth )
    8889                            .addClass( 'menu-item-depth-'+ ( newDepth ) );
    89                         if ( newDepth == 0 )
     90
     91                        if ( 0 === newDepth ) {
    9092                            t.find( '.is-submenu' ).hide();
     93                        }
    9194                    });
    9295                },
Note: See TracChangeset for help on using the changeset viewer.