]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
reset carousel in the case that it is reinstantiated twice
authorfat <jacobthornton@gmail.com>
Thu, 20 Dec 2012 09:13:03 +0000 (01:13 -0800)
committerfat <jacobthornton@gmail.com>
Thu, 20 Dec 2012 09:13:03 +0000 (01:13 -0800)
js/bootstrap-carousel.js

index 6a1b21f3702665166c6bd99e635eebc42a84ac47..4838a16847fdc1fa908109a192660edf7b5b497d 100644 (file)
       if (!data) $this.data('carousel', (data = new Carousel(this, options)))
       if (typeof option == 'number') data.to(option)
       else if (action) data[action]()
-      else if (options.interval) data.cycle()
+      else if (options.interval) data.pause().cycle()
     })
   }