title: jQuery Nivo Slider: get a wrong value by direct access to the object
body: <p>i use Nivo-Slider for a little Slideshow whith 6 Pictures:</p>
  
  <pre><code>jQuery(window).load(function() {
      $('#image-slider').nivoSlider({                             
          beforeChange: function(){
  
              var test = $('#image-slider').data('nivo:vars');
              console.log(test);
              console.log(test.currentSlide);                 
  
          },          
      });
  });
  </code></pre>
  
  <p>The Output of console.log(test) shows this:</p>
  
  <pre><code>({currentSlide:1, currentImage:{0:{}, context:{}, length:1}, totalSlides:6, running:true, paused:false, stop:false, controlNavEl:{0:{}, length:1}})
  </code></pre>
  
  <p>I need the value of currentSlide, so i try to get it with:</p>
  
  <pre><code>var cs = test.currentSlide;
  </code></pre>
  
  <p>But the values im getting on this way differs from the values that shows by </p>
  
  <pre><code> console.log(test)
  </code></pre>
  
  <p><code>console.log(test)</code> shows me the wantet values from 0 to 5, which i need to knowing the next Picture in Slide. The values getting by <code>test.currentSlide</code> are most one less, but if i use the Direction-Navigation and hit "Back", it even goes negative to -3 and jump after then to 3 etc. - useless.</p>
  
  <p>How i can get the value of currentSlide which is listet in the output of <code>console.log(test)</code>?</p>