mirror of https://github.com/twbs/bootstrap.git
remove slide from carousel constructor #5579
This commit is contained in:
parent
66b70016d0
commit
91fbadad5b
|
|
@ -29,7 +29,6 @@
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
this.options = options
|
this.options = options
|
||||||
this.options.slide && this.slide(this.options.slide)
|
|
||||||
this.options.pause == 'hover' && this.$element
|
this.options.pause == 'hover' && this.$element
|
||||||
.on('mouseenter', $.proxy(this.pause, this))
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
.on('mouseleave', $.proxy(this.cycle, this))
|
.on('mouseleave', $.proxy(this.cycle, this))
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,6 @@
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
this.options = options
|
this.options = options
|
||||||
this.options.slide && this.slide(this.options.slide)
|
|
||||||
this.options.pause == 'hover' && this.$element
|
this.options.pause == 'hover' && this.$element
|
||||||
.on('mouseenter', $.proxy(this.pause, this))
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
.on('mouseleave', $.proxy(this.cycle, this))
|
.on('mouseleave', $.proxy(this.cycle, this))
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -29,7 +29,6 @@
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
this.options = options
|
this.options = options
|
||||||
this.options.slide && this.slide(this.options.slide)
|
|
||||||
this.options.pause == 'hover' && this.$element
|
this.options.pause == 'hover' && this.$element
|
||||||
.on('mouseenter', $.proxy(this.pause, this))
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
.on('mouseleave', $.proxy(this.cycle, this))
|
.on('mouseleave', $.proxy(this.cycle, this))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue