title: How can you if check a jQuery plugin is already bound to a DOM node?
body: <p>Most jQuery plugins are tied/bound to a DOM node when you first initialize them.</p>
  
  <pre><code>$('#foo').bar({options: ...});
  </code></pre>
  
  <p>How can you check to see what plugins or objects are currently bound to a DOM node like <code>#foo</code>?</p>
  
  <pre><code>if($('#foo').bar)
  if($.inArray('bar', $('#foo').eq(0)))
  if($('#foo').eq(0).indexOf('bar'))
  if($('#foo').hasOwnProperty('bar'))
  </code></pre>
  
  <p>For example, it's possible to get the events bound to an object like this</p>
  
  <pre><code>console.log($('#foo').data('events'));
  </code></pre>