diff --git a/jquery.cycle.all.js b/jquery.cycle.all.js index dc474ea..3c7dc2a 100644 --- a/jquery.cycle.all.js +++ b/jquery.cycle.all.js @@ -90,6 +90,10 @@ $.fn.cycle = function(options, arg2) { debug('first timeout: ' + startTime); this.cycleTimeout = setTimeout(function(){go(els,opts2,0,!opts.backwards);}, startTime); } + + if (opts.init) { + opts.init(); + } }); }; diff --git a/jquery.cycle.lite.js b/jquery.cycle.lite.js index d22ed39..7776f49 100644 --- a/jquery.cycle.lite.js +++ b/jquery.cycle.lite.js @@ -119,6 +119,9 @@ $.fn.cycle = function(options) { this.cycleTimeout = setTimeout(function() { go(els,opts,0,!opts.rev); }, opts.timeout + (opts.delay||0)); + + if (opts.init) + opts.init(); }); };