title: How exactly does $.mobile.activePage property work?
body: <p>I am trying something as follows,</p>
  
  <pre><code>$(document).bind ('pageshow', function (e, data) {
     console.log ($('#page_spots'));
     console.log ($.mobile.activePage);
  
     if ($.mobile.activePage == $('#page_spots')) { console.log ('Bingo!'); }
  });
  </code></pre>
  
  <p>Being <code>#page_spots</code> a div with the attribute <code>data-role</code> set to <code>page</code>. In the example above, when the active page is <code>#page_spots</code> I want to log 'Bingo!' in the console.</p>
  
  <p>I am a complete newbie to jQM and I don't know if this should be the right way or not.</p>
  
  <p>Thank you in advance and apologies for my english.</p>