title: jQuery sub menu not opening in firefox
body: <p>I have the following piece of jquery which slides open the sub menus when the parent item is clicked. It works fine on chrome but on firefox the sub menus dont open. Any ideas ?</p>
  
  <pre><code>(function($) {
  "use strict";
  
    $( '.menu-area ul li' ).on('click', function() {
  
  if($(this).closest("li").children("ul").length) {
    event.preventDefault();
    $(this).children('ul').slideToggle(300);
  }
  else{
    event.preventDefault();
    $('.screen-washer').removeClass("right");
    //$('.screen-washer').addClass("left");
  
    //console.log($('a').attr('href'));
    var linkLocation = $(this).children('a:first').attr('href');
          //alert(linkLocation);
          if (linkLocation.indexOf('#') &gt;= 0) {} else {
              setTimeout(function() {
                  //$('.preloader').fadeIn(300);
                  window.location = linkLocation;
              }, 500);
          }
  
  }
    });
  
  })(jQuery);
  </code></pre>