app/assets/javascripts/partystreusel/slider.js.coffee in partystreusel-1.1.0pre2 vs app/assets/javascripts/partystreusel/slider.js.coffee in partystreusel-1.1.0

- old
+ new

@@ -6,15 +6,16 @@ class Slider extends Partystreusel.Base @className = 'Slider' constructor: (el) -> super + @slidelist = @$el.find('.slider__list') @initializeCycle() initializeCycle: -> # see for documenation and options: # https://github.com/malsup/cycle2 - @$el.cycle + @slidelist.cycle slides: '.slider__item' fx: 'scrollHorz' speed: 300 timeout: 0 next: '.slider__control-next'