Ticket #34033: 34033-2.diff
File 34033-2.diff, 633 bytes (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentyfourteen/js/functions.js
16 16 17 17 // Enable menu toggle for small screens. 18 18 ( function() { 19 if ( ! nav || ! button) {19 if ( ! nav.length || ! button.length ) { 20 20 return; 21 21 } 22 22 23 23 // Hide button if menu is missing or empty. 24 if ( ! menu || ! menu.children().length ) {24 if ( ! menu.length || ! menu.children().length ) { 25 25 button.hide(); 26 26 return; 27 27 }