Using the example on [this][1] page, I have the following jQuery code:
(function ($) { Drupal.behaviors.gsdOmega4ExampleBehavior = { attach: function (context, settings) { var jcarousel = $('.home-jcarousel'); console.log('executed'); jcarousel.on('jcarousel:create jcarousel:reload', function() { console.log('never executed'); }) console.log('executed'); }; })(jQuery);
The ‘jcarousel’ object is being referenced correctly. I don’t understand why jcarousel.on() is not being executed