title: Jasmine spies not being called
body: <p>I am having some trouble implimenting spying in Jasmine</p>
  
  <p>I want to check if a link has been clicked on a slider using a jasmine spy and jasmine jquery.</p>
  
  <p>Here is a simplified version:</p>
  
  <p>I have some links as part of an html fixture file.</p>
  
  <pre><code>&lt;a href="#" class="someLink"&gt;Link 1&lt;/a&gt;
  &lt;a href="#" class="someLink"&gt;Link 2&lt;/a&gt;
  </code></pre>
  
  <p>slider:</p>
  
  <pre><code>var Slider = function(links){
      this.sliderLinks = $(links);
      this.bindEvents();
  }
  
  Slider.prototype.bindEvents = function(){
      this.sliderLinks.on('click', this.handleClick);
  }
  
  Slider.prototype.handleClick = function(e){
      console.log('i have been clicked')
  }
  </code></pre>
  
  <p>spec file:</p>
  
  <pre><code>describe('Slider', function(){
      var slider;
  
      beforeEach(function(){
          loadFixtures('slider.html');
  
          slider = new Slider('.someLink');
  
      });
  
      it('should handle link click', function(){
          spyOn(slider, 'handleClick');
          $(slider.sliderLinks[0]).trigger('click');
          expect(slider.handleClick).toHaveBeenCalled();
      });
  
  });
  </code></pre>
  
  <p>The test is failing. But the 'i have been clicked' has been logged to the console so the method is being called.</p>
  
  <p>If I do this the test passes though:</p>
  
  <pre><code>it('should handle link click', function(){
          spyon(slider, 'handleClick');
          slider.handleClick();
          expect(slider.handleClick).toHaveBeenCalled();
      });
  </code></pre>
  
  <p>So my question essentially is:</p>
  
  <ol>
  <li>Am i testing for this type of thing in the wrong way?</li>
  <li>why is the spy not registering the fact that the method has been called?</li>
  </ol>