Ticket #34033: 34033-3.diff
File 34033-3.diff, 638 bytes (added by , 9 years ago) |
---|
-
src/wp-content/themes/twentythirteen/js/functions.js
34 34 * Enables menu toggle for small screens. 35 35 */ 36 36 ( function() { 37 if ( ! nav || ! button) {37 if ( ! nav.length || ! button.length ) { 38 38 return; 39 39 } 40 40 41 41 // Hide button if menu is missing or empty. 42 if ( ! menu || ! menu.children().length ) {42 if ( ! menu.length || ! menu.children().length ) { 43 43 button.hide(); 44 44 return; 45 45 }