title: jQuery error TypeError: $.event.handle is undefined
body: <p>I am using latest jQuery for jQuery.masonry its throwing following error: on line 47 in jquery-1.9.1.min.js</p>
  
  <pre><code>TypeError: $.event.handle is undefined
  </code></pre>
  
  <p>if any one is having same error ?</p>
  
  <p>MyCode:</p>
  
  <pre><code>&lt;script type="text/javascript" src="&lt;?php bloginfo('template_url'); ?&gt;/scripts/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script language="javascript" src="http://masonry.desandro.com/jquery.masonry.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://masonry.desandro.com/js/jquery.infinitescroll.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
    $(function(){
  
      var $container = $('#content');
  
      $container.imagesLoaded(function(){
        $container.masonry({
          itemSelector: '.post',
          isAnimated: true
        });
      });
  
      $container.infinitescroll({
        navSelector  : '.wp-pagenavi',    // selector for the paged navigation 
        nextSelector : '.wp-pagenavi a',  // selector for the NEXT link (to page 2)
        itemSelector : '.post',     // selector for all items you'll retrieve
        loading: {
            finishedMsg: 'No more pages to load.',
            img: 'http://i.imgur.com/6RMhx.gif'
          }
        },
        // trigger Masonry as a callback
        function( newElements ) {
          // hide new items while they are loading
          var $newElems = $( newElements ).css({ opacity: 0 });
          // ensure that images load before adding to masonry layout
          $newElems.imagesLoaded(function(){
            // show elems now they're ready
            $newElems.animate({ opacity: 1 });
            $container.masonry( 'appended', $newElems, true ); 
          });
        }
      );
  
    });
  &lt;/script&gt;
  </code></pre>