malsup / cycle2

2nd gen cycling
899 stars 236 forks source link

Custom slide class ignored when autoheight plugin creates sentinel #649

Open TimSmith opened 9 years ago

TimSmith commented 9 years ago

Version 2.1.6 build: 20141007

If a custom slide class is used (e.g. using data-cycle-slide-class='myclass') then the autoheight plugin created sentinel slide still uses the default value ('cycle-slide'). (line 780 in Version 2.1.6 build: 20141007).

Incidentally you also try to remove 'cycle-slide-active' from the sentinel slide even if a custom value for that was used (meaning a custom class with an active value is always left on the sentinel).

In the circumstance we have where we use a custom slide class to avoid code conflicts with another wordpress plugin that also uses your marvellous Cycle2 this is problematic.