title: Is there a way to stop JQuery Mobile from Duplicating Events?
body: <p>I am attaching a click event to an image on my page.  </p>
  
  <pre><code>$('.ui-block-b img').click(function(event) {}
  </code></pre>
  
  <p>I am using a jQuery mobile fixed footer.</p>
  
  <p>I have tried to initialize this using both the <code>pagecreate</code> and <code>pageinit</code> event.</p>
  
  <p>When I click on the links (being loaded with Ajax) in the footer and then come back to the page with the click handler the <code>pagecreate</code> and <code>pageinit</code> are being refired.  This is attaching another click event, so when I click on the image 2 events are being fired.</p>
  
  <p>I am wondering is there a jquery Mobile event that address this?? Did i miss something in the documentation?  </p>
  
  <p>I have addressed this problem by checking if the event exists before attaching it but it seems like jQuery mobile should have something to that handles this? I have done</p>
  
  <pre><code>var events = $('.ui-block-b img').data('events');
  if (typeof events == 'undefined') { // attach handler}
  </code></pre>
  
  <p>Perhaps jQuery mobile already addressed this issue and I'm just missing something?</p>