Closed reddo closed 10 years ago
Hi @reddo,
Thanks for the PR. This is actually the markup that I was originally using on one of the first releases of the plugin. However, due to some reported problems I changed it to use explicit javascript instead.
Although I agree that using data attributes is cleaner, I'm not keen to revert to this approach as I suspect that it will cause people problems. It seems to work at the moment - and for now I'm going to take the approach that if it ain't broke, don't fix it...
Cheers,
Phil
..though re-reading your changes I guess this could be because I incorrectly had the data-interval attribute on the <li>
elements instead of the container. I'll have a play and do some testing.
These changes are also in your other PR (#37) so I'll close this one for now..
Added
data
attributes to the container div, removed unnecessarydata-interval
attributes from carousel controls<li>
and the script that became unnecessary after thedata-interval
has been added to the container.