code: function (e) {
  			var href;
  			var $this = $(this);
  			var $target = $($this.attr("data-target") || (href = $this.attr("href")) && href.replace(/.*(?=#[^\s]+$)/, "")); // strip for ie7
  			if (!$target.hasClass("carousel")) return;
  			var options = $.extend({}, $target.data(), $this.data());
  			var slideIndex = $this.attr("data-slide-to");
  			if (slideIndex) options.interval = false;
  
  			Plugin.call($target, options);
  
  			if (slideIndex) {
  				$target.data("bs.carousel").to(slideIndex);
  			}
  
  			e.preventDefault();
  		}
docs: CAROUSEL DATA-API =================