Skip to content

Commit

Permalink
feat: build dist files for initial-index pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Heinz committed Feb 20, 2018
1 parent e1c38d6 commit 8190ffd
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
15 changes: 12 additions & 3 deletions dist/jquery.lory.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@ function lory(slider, opts) {
classNamePrevCtrl = _options4.classNamePrevCtrl,
classNameNextCtrl = _options4.classNameNextCtrl,
enableMouseEvents = _options4.enableMouseEvents,
classNameActiveSlide = _options4.classNameActiveSlide;
classNameActiveSlide = _options4.classNameActiveSlide,
initialIndex = _options4.initialIndex;


index = initialIndex;
frame = slider.getElementsByClassName(classNameFrame)[0];
slideContainer = frame.getElementsByClassName(classNameSlideContainer)[0];
prevCtrl = slider.getElementsByClassName(classNamePrevCtrl)[0];
Expand Down Expand Up @@ -437,7 +439,8 @@ function lory(slider, opts) {
ease = _options5.ease,
rewindSpeed = _options5.rewindSpeed,
rewindOnResize = _options5.rewindOnResize,
classNameActiveSlide = _options5.classNameActiveSlide;
classNameActiveSlide = _options5.classNameActiveSlide,
initialIndex = _options5.initialIndex;


slidesWidth = slideContainer.getBoundingClientRect().width || slideContainer.offsetWidth;
Expand All @@ -450,7 +453,7 @@ function lory(slider, opts) {
}

if (rewindOnResize) {
index = 0;
index = initialIndex;
} else {
ease = null;
rewindSpeed = 0;
Expand Down Expand Up @@ -758,6 +761,12 @@ exports.default = {
*/
infinite: false,

/**
* the slide index to show when the slider is initialized.
* @initialIndex {number}
*/
initialIndex: 0,

/**
* class name for slider frame
* @classNameFrame {string}
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.lory.min.js

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

2 changes: 1 addition & 1 deletion dist/jquery.lory.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 8190ffd

Please sign in to comment.