title: problem with event propagation in FireFox
body: <p>I'm using the following code to prevent event propagation:</p>
  
  <pre><code>function mapSlider(e) {
  if ($('.slideme').hasClass('open')) {
          $('.slideme').animate({left:0,},'slow').removeClass('open');
          $('.opened').hide();
          $('.closed').show();
          } else {
          $('.slideme').animate({left:-710,},'slow').addClass('open');
          $('.opened').show();
          $('.closed').hide();
          }
          return(false);
  
          if (!e) var e = window.event;
          e.cancelBubble = true;
          if (e.stopPropagation) e.stopPropagation();
          e.preventDefault();
          e.stopImmediatePropagation();
  }
  </code></pre>
  
  <p>It's working in Chrome and Safari but not Opera or Firefox (haven't even attempted IE yet!). FF firebug says 'e' is undefined. I'm nowhere near being a jquery guru and I don't understand why e is undefined, but is it really? I thought var e <em>is</em> defining it?</p>
  
  <p>And how do I go about fixing it?</p>
  
  <p>Apologies for stupid questions - I'm self-taught and pick things up as I go.</p>
  
  <p>MTIA</p>