Open sbosell opened 11 years ago
Yeah, this is a sequencing issue with the event delegation. For now you can bind at the document instead of the slideshow (until I fix it):
$(document).on('cycle-bootstrap', function( e, opts, API ) {
API.buildPagerLink = function(opts, slideOpts, slide) {
// your impl
}
});
Thanks, if you just point me at a file or a place I'm more than happy to send a pull request with the fix. I've always enjoyed using this plugin and the prior version and don't mind putting a little time in to give back if that's something you are interested in.
+1
It's worth noting to others finding this that the event binding must be outside of the jQuery load function.
The documentation states that all API events can be replaced via the cycle-bootstrap event like so:
The buildPagerLink api does NOT seem to work. It is defined as: function( slideOptionHash, slide )
So:
The buildPagerLink never seems to be fired.
Here is a jsfiddle example: http://jsfiddle.net/lucuma/zyhrK/2/