title: Caroufredsel - Passing additional parameters in callback methods
body: <p>With the plugin 'Caroufredsel' you can setup callback events for when certain things change, for example when a different slide is visible.</p>
  
  <pre><code>options.scroll.onAfter(data) {
      console.log(data);
  };
  </code></pre>
  
  <p>I want to pass an additional parameter but I'm not sure how to do it. For example, if I do</p>
  
  <pre><code>var foo = 'bar';
  options.scroll.onAfter(data,foo) {
      console.log(foo);
  };
  </code></pre>
  
  <p>Then foo is undefined. I expect that this is down to the plugin architecture not accepting additional arguments?</p>
  
  <p>Is there a way around this? I tried setting up an event listener:</p>
  
  <pre><code>$el.on('onAfter', {foo: bar}, function() {
      console.log(e.data.foo);
  });
  </code></pre>
  
  <p>But unfortunately it doesn't appear as though the plugin fires the events.</p>
  
  <p>Any ideas?</p>