(Reposting because I failed to finish the subject line last time.)

Is there a way to pass custom data to the jCarousel callbacks without
creating a global?

Ideally I'd like to be able to create arbitrary properties on the
jCarousel object when it is initialized and then read them from the
object in the callbacks.

Something like this to construct the jcarousel that allows the normal
properties as well as custom ones:

jQuery('#mycarousel').jcarousel({
   size: that.mycarousel_itemList.length,
   itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback}
   arbitraryData: { some:"Data" },
   otherArbitraryData: "Hello World"  });

Then in the callback you would be able to access the custom data
through the jcarousel object.

Reply via email to