title: jQuery trigger callback function with vclick on jQuery Mobile
body: <p>I am using jQuery Mobile v1.2.0 and i'm attempting to implement a callback function with the jQuery <code>trigger</code> function on a click/vclick on a link.</p>
  
  <p>This is my callback function and the trigger below it.</p>
  
  <pre><code>var callback = function() {
     console.log('in the callback, yo!');
     var mainContainer = $.mobile.activePage.find('.main');
     // do some stuff...  
  };
  
  $.mobile.activePage.find('.new_link').trigger('click', [callback]);
  </code></pre>
  
  <p>What I am finding is that <code>Callback</code> is pulling through as <code>undefined</code> when I do a typeof on it. My understanding is this should be a function, which is what i'm checking for, but for some reason it does not find it.</p>
  
  <pre><code>var page = $.mobile.activePage;
  
  page.on('vclick', '.new_link', function(e, Callback) {
      e.stopPropagation();
      e.preventDefault();
  
      // comes through as 'undefined'
          console.log(typeof(Callback));
  
      if (typeof Callback === 'function') {
          Callback();
      }
  
  });
  </code></pre>
  
  <p>I can see that the code gets as far as checking for the type of <code>Callback</code>, but it does not have a function. I see nothing in the jQuery trigger documentation for a callback such as this, but i'm led to believe it does work.</p>