MCPcopy
hub / github.com/kenberkeley/react-demo / Carousel

Function Carousel

static/bootstrap/js/bootstrap.js:310–325  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

308 // =========================
309
310 var Carousel = function (element, options) {
311 this.$element = $(element)
312 this.$indicators = this.$element.find('.carousel-indicators')
313 this.options = options
314 this.paused = null
315 this.sliding = null
316 this.interval = null
317 this.$active = null
318 this.$items = null
319
320 this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
321
322 this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
323 .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
324 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
325 }
326
327 Carousel.VERSION = '3.3.5'
328

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected