grunt
This commit is contained in:
parent
e3a569f4f6
commit
3ec37d4a4d
24 changed files with 177 additions and 56 deletions
10
js/dist/carousel.js
vendored
10
js/dist/carousel.js
vendored
|
|
@ -108,9 +108,10 @@ var Carousel = function ($) {
|
|||
// public
|
||||
|
||||
Carousel.prototype.next = function next() {
|
||||
if (!this._isSliding) {
|
||||
this._slide(Direction.NEXT);
|
||||
if (this._isSliding) {
|
||||
throw new Error('Carousel is sliding');
|
||||
}
|
||||
this._slide(Direction.NEXT);
|
||||
};
|
||||
|
||||
Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
|
||||
|
|
@ -121,9 +122,10 @@ var Carousel = function ($) {
|
|||
};
|
||||
|
||||
Carousel.prototype.prev = function prev() {
|
||||
if (!this._isSliding) {
|
||||
this._slide(Direction.PREVIOUS);
|
||||
if (this._isSliding) {
|
||||
throw new Error('Carousel is sliding');
|
||||
}
|
||||
this._slide(Direction.PREVIOUS);
|
||||
};
|
||||
|
||||
Carousel.prototype.pause = function pause(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue