Skip to content

Commit

Permalink
Run grunt.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
XhmikosR committed Oct 13, 2015
1 parent fe0ad82 commit 724bf86
Show file tree
Hide file tree
Showing 25 changed files with 149 additions and 59 deletions.
1 change: 1 addition & 0 deletions dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css.map

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion dist/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,14 @@ var Carousel = (function ($) {
this._slide(Direction.NEXT);
}
}
}, {
key: 'nextWhenVisible',
value: function nextWhenVisible() {
// Don't call next when the page isn't visible
if (!document.hidden) {
this.next();
}
}
}, {
key: 'prev',
value: function prev() {
Expand Down Expand Up @@ -685,7 +693,7 @@ var Carousel = (function ($) {
}

if (this._config.interval && !this._isPaused) {
this._interval = setInterval($.proxy(this.next, this), this._config.interval);
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
}
}
}, {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/bootstrap.min.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion dist/js/umd/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@
this._slide(Direction.NEXT);
}
}
}, {
key: 'nextWhenVisible',
value: function nextWhenVisible() {
// Don't call next when the page isn't visible
if (!document.hidden) {
this.next();
}
}
}, {
key: 'prev',
value: function prev() {
Expand Down Expand Up @@ -171,7 +179,7 @@
}

if (this._config.interval && !this._isPaused) {
this._interval = setInterval($.proxy(this.next, this), this._config.interval);
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
}
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/docs.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/css/docs.min.css.map

Large diffs are not rendered by default.

79 changes: 40 additions & 39 deletions docs/dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap.min.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 724bf86

Please sign in to comment.