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:

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

Reply via email to