title: Custom event in jQuery that isn't bound to a DOM element?
body: <p>I'm curious if its possible to create a custom event in jQuery that isn't bound to a DOM element.</p>
  
  <p>I greatly prefer jQuery to YUI but there is one thing in YUI that I like, which is creating custom events and being able to subscribe to them later.</p>
  
  <p>For example, this creates an event that is bound to a variable, not to a DOM element:</p>
  
  <pre><code>var myevent = new YAHOO.util.CustomEvent("mycustomevent");
  </code></pre>
  
  <p>All of the examples and documentation I have been reading for jQuery require something like:</p>
  
  <pre><code>$('body').bind('mycustomevent', function(){
      //do stuff
  });
  </code></pre>