Skip to content

Commit 62e2c0b

Browse files
Bump v3.1.0
1 parent 64f0b1a commit 62e2c0b

File tree

5 files changed

+42
-36
lines changed

5 files changed

+42
-36
lines changed

dist/glide.esm.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Glide.js v3.0.4
2+
* Glide.js v3.1.0
33
* (c) 2013-2018 Jędrzej Chałubek <[email protected]> (http://jedrzejchalubek.com/)
44
* Released under the MIT License.
55
*/
@@ -1753,17 +1753,19 @@ var Clones = function (Glide, Components, Events) {
17531753
var perView = Glide.settings.perView;
17541754
var length = Components.Html.slides.length;
17551755

1756-
// Repeat creating pattern based on the ratio calculated
1757-
// by number in `perView` per actual number of slides.
1758-
for (var r = 0; r < Math.max(1, Math.floor(perView / length)); r++) {
1759-
// Fill pattern with indexes of slides at the beginning of track.
1760-
for (var i = 0; i <= length - 1; i++) {
1761-
pattern.push('' + i);
1762-
}
1756+
if (length !== 0) {
1757+
// Repeat creating pattern based on the ratio calculated
1758+
// by number in `perView` per actual number of slides.
1759+
for (var r = 0; r < Math.max(1, Math.floor(perView / length)); r++) {
1760+
// Fill pattern with indexes of slides at the beginning of track.
1761+
for (var i = 0; i <= length - 1; i++) {
1762+
pattern.push('' + i);
1763+
}
17631764

1764-
// Fill pattern with indexes of slides from the end of track.
1765-
for (var _i = length - 1; _i >= 0; _i--) {
1766-
pattern.unshift('-' + _i);
1765+
// Fill pattern with indexes of slides from the end of track.
1766+
for (var _i = length - 1; _i >= 0; _i--) {
1767+
pattern.unshift('-' + _i);
1768+
}
17671769
}
17681770
}
17691771

dist/glide.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Glide.js v3.0.4
2+
* Glide.js v3.1.0
33
* (c) 2013-2018 Jędrzej Chałubek <[email protected]> (http://jedrzejchalubek.com/)
44
* Released under the MIT License.
55
*/
@@ -1759,17 +1759,19 @@ var Clones = function (Glide, Components, Events) {
17591759
var perView = Glide.settings.perView;
17601760
var length = Components.Html.slides.length;
17611761

1762-
// Repeat creating pattern based on the ratio calculated
1763-
// by number in `perView` per actual number of slides.
1764-
for (var r = 0; r < Math.max(1, Math.floor(perView / length)); r++) {
1765-
// Fill pattern with indexes of slides at the beginning of track.
1766-
for (var i = 0; i <= length - 1; i++) {
1767-
pattern.push('' + i);
1768-
}
1762+
if (length !== 0) {
1763+
// Repeat creating pattern based on the ratio calculated
1764+
// by number in `perView` per actual number of slides.
1765+
for (var r = 0; r < Math.max(1, Math.floor(perView / length)); r++) {
1766+
// Fill pattern with indexes of slides at the beginning of track.
1767+
for (var i = 0; i <= length - 1; i++) {
1768+
pattern.push('' + i);
1769+
}
17691770

1770-
// Fill pattern with indexes of slides from the end of track.
1771-
for (var _i = length - 1; _i >= 0; _i--) {
1772-
pattern.unshift('-' + _i);
1771+
// Fill pattern with indexes of slides from the end of track.
1772+
for (var _i = length - 1; _i >= 0; _i--) {
1773+
pattern.unshift('-' + _i);
1774+
}
17731775
}
17741776
}
17751777

0 commit comments

Comments
 (0)