Skip to content

Commit

Permalink
Set first/last on load
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Sep 23, 2014
1 parent 20263a3 commit 45f8d56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ var Slider = function (container, params) {
s.slides.css('height', 'calc(' + sizeValue + ')');
}
}
// First/last
s.isFirst = s.activeSlideIndex === 0;
s.isLast = s.activeSlideIndex === s.slides.length - s.params.slidesPerView;
};

s.updatePagination = function () {
Expand Down

0 comments on commit 45f8d56

Please sign in to comment.