woocommerce-wordpress-service/app/wp-content/themes/lzrestaurant/assets/js/lzrestaurant-navigation.js
// Sets or removes the .focus class on an element.

Sets or removes the .focus class on an element.
Sets or removes the . focus class on an element .
function toggleFocus() {
      var self = this;
      	while (-1 === self.className.indexOf( 'nav-menu' ) ) {
	      	if ( 'li' === self.tagName.toLowerCase() ) {
	          	if ( -1 !== self.className.indexOf( 'focus' ) ) {
	          		self.className = self.className.replace( ' focus', '' );
	          	} else {
	          		self.className += ' focus';
	          	}
	      	}
	      	self = self.parentElement;
      	}
	}
function toggleFocus ( ) { var self = this ; while ( - 1 === self . className . indexOf ( 'nav-menu' ) ) { if ( 'li' === self . tagName . toLowerCase ( ) ) { if ( - 1 !== self . className . indexOf ( 'focus' ) ) { self . className = self . className . replace ( ' focus' , '' ) ; } else { self . className += ' focus' ; } } self = self . parentElement ; } }
Sets or removes the .focus class on an element.
Sets or removes the . focus class on an element .
// Move up through the ancestors of the current link until we hit .mobile-menu.
 // On li elements toggle the class .focus.
