Fix: updated to latest version

This commit is contained in:
jcorporation 2018-09-30 00:02:13 +01:00
parent 022a0469d7
commit 3fa64af111
2 changed files with 11 additions and 47 deletions

View File

@ -1,4 +1,4 @@
// Native Javascript for Bootstrap 4 v2.0.23 | © dnp_theme | MIT-License
// Native Javascript for Bootstrap 4 v2.0.24 | © dnp_theme | MIT-License
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD support:
@ -315,7 +315,7 @@
arrowLeft && (arrow[style][left] = arrowLeft + 'px');
};
BSN.version = '2.0.23';
BSN.version = '2.0.24';
/* Native Javascript for Bootstrap 4 | Alert
-------------------------------------------*/
@ -501,7 +501,8 @@
this[interval] = typeof intervalOption === 'number' ? intervalOption
: intervalOption === false || intervalData === 0 || intervalData === false ? 0
: 5000; // bootstrap carousel default interval
: isNaN(intervalData) ? 5000 // bootstrap carousel default interval
: intervalData;
// bind, event targets
var self = this, index = element.index = 0, timer = element.timer = 0,
@ -592,8 +593,11 @@
var activeItem = this.getActiveIndex(), // the current active
orientation;
// determine slideDirection first
if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) {
// first return if we're on the same item #227
if ( activeItem === next ) {
return;
// or determine slideDirection
} else if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) {
slideDirection = self[direction] = left; // next
} else if ( (activeItem > next) || (activeItem === total - 1 && next === 0 ) ) {
slideDirection = self[direction] = right; // prev

File diff suppressed because one or more lines are too long