You should no longer pass images array as an option, you are now supposed to pass it as the first argument of Chocolat.
You can learn more on how to instanciate Chocolat here.
// replace:{ firstImage:0,// options ...}// with { firstImageIndex:0,// options ...}
lastImage
lastImage has been renamed to lastImageIndex .
// replace:{ lastImage:5,// options ...}// with { lastImageIndex:5,// options ...}
currentImage
currentImage has been renamed to currentImageIndex .
// replace:{ currentImage:5,// options ...}// with { currentImageIndex:5,// options ...}
imageSize
imageSize default value 'default' as been renamed to 'scale-down'
// replace:{ imageSize:'default',// options ...}// with { imageSize:'scale-down',// options ...}
enableZoom
enableZoom has been renamed to allowZoom .
// replace:{ enableZoom:true,// options ...}// with { allowZoom:true,// options ...}
Api
API can now be accessed without calling the api() function.
You can learn more on how to use the API here
// replace:constinstance=$(...).Chocolat().data('chocolat')instance.api().open() // open() is taken as an example here.// with:constinstance=Chocolat(...)instance.api.open() // open() is taken as an example here.