Created by: liuyl
This bug is because when we call carousel like $("#content").carousel()
, the $.fn.carousel
function is called.
But this function does not check the option in HTML attributes, it only extend the option in arguments and the default option. Which means, if we set the data-interval="false"
, and call $("#content").carousel()
, the interval
will be set to default value 5000, but not false.
I extend $this.data()
to option object. The bug is fixed.