1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-11 16:14:04 +02:00

add additional carousel test

This commit is contained in:
Jacob Thornton
2013-07-23 18:56:00 -07:00
parent 68e87183a0
commit faa00629c4
3 changed files with 9 additions and 3 deletions

View File

@@ -422,7 +422,7 @@
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.carousel')
var options = $.extend({}, Carousel.DEFAULTS, typeof option == 'object' && option)
var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
var action = typeof option == 'string' ? option : options.slide
if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))

File diff suppressed because one or more lines are too long