mirror of
https://github.com/twbs/bootstrap.git
synced 2025-06-03 00:02:43 -04:00
grunt
This commit is contained in:
parent
2c562d2386
commit
5bb08c50fa
7
dist/js/bootstrap.js
vendored
7
dist/js/bootstrap.js
vendored
@ -292,7 +292,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
// =========================
|
// =========================
|
||||||
|
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element).on('keydown.bs.carousel', $.proxy(this.keydown, this))
|
this.$element = $(element)
|
||||||
this.$indicators = this.$element.find('.carousel-indicators')
|
this.$indicators = this.$element.find('.carousel-indicators')
|
||||||
this.options = options
|
this.options = options
|
||||||
this.paused =
|
this.paused =
|
||||||
@ -301,6 +301,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.$active =
|
this.$active =
|
||||||
this.$items = null
|
this.$items = null
|
||||||
|
|
||||||
|
this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
|
||||||
|
|
||||||
this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
|
this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
|
||||||
.on('mouseenter.bs.carousel', $.proxy(this.pause, this))
|
.on('mouseenter.bs.carousel', $.proxy(this.pause, this))
|
||||||
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
|
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
|
||||||
@ -313,7 +315,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
Carousel.DEFAULTS = {
|
Carousel.DEFAULTS = {
|
||||||
interval: 5000,
|
interval: 5000,
|
||||||
pause: 'hover',
|
pause: 'hover',
|
||||||
wrap: true
|
wrap: true,
|
||||||
|
keyboard: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Carousel.prototype.keydown = function (e) {
|
Carousel.prototype.keydown = function (e) {
|
||||||
|
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
docs/assets/js/customize.min.js
vendored
2
docs/assets/js/customize.min.js
vendored
File diff suppressed because one or more lines are too long
2
docs/assets/js/raw-files.min.js
vendored
2
docs/assets/js/raw-files.min.js
vendored
File diff suppressed because one or more lines are too long
7
docs/dist/js/bootstrap.js
vendored
7
docs/dist/js/bootstrap.js
vendored
@ -292,7 +292,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
// =========================
|
// =========================
|
||||||
|
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element).on('keydown.bs.carousel', $.proxy(this.keydown, this))
|
this.$element = $(element)
|
||||||
this.$indicators = this.$element.find('.carousel-indicators')
|
this.$indicators = this.$element.find('.carousel-indicators')
|
||||||
this.options = options
|
this.options = options
|
||||||
this.paused =
|
this.paused =
|
||||||
@ -301,6 +301,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
this.$active =
|
this.$active =
|
||||||
this.$items = null
|
this.$items = null
|
||||||
|
|
||||||
|
this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
|
||||||
|
|
||||||
this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
|
this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
|
||||||
.on('mouseenter.bs.carousel', $.proxy(this.pause, this))
|
.on('mouseenter.bs.carousel', $.proxy(this.pause, this))
|
||||||
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
|
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
|
||||||
@ -313,7 +315,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
|
|||||||
Carousel.DEFAULTS = {
|
Carousel.DEFAULTS = {
|
||||||
interval: 5000,
|
interval: 5000,
|
||||||
pause: 'hover',
|
pause: 'hover',
|
||||||
wrap: true
|
wrap: true,
|
||||||
|
keyboard: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Carousel.prototype.keydown = function (e) {
|
Carousel.prototype.keydown = function (e) {
|
||||||
|
2
docs/dist/js/bootstrap.min.js
vendored
2
docs/dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user