Skip to content

Commit

Permalink
Merge pull request #26 from gflateman/master
Browse files Browse the repository at this point in the history
changeSlickSlide for multiple elements
  • Loading branch information
kenwheeler committed Mar 29, 2014
2 parents c712a03 + 0dae297 commit 8ac5e31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions js/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1029,18 +1029,18 @@
});
};

$.fn.changeSlickSlide = function (index) {
$.fn.changeSlickSlide = function (slide) {
var _ = this;
return _.each(function () {
return _.each(function (index, element) {

_.slider.slideHandler(index);
element.slider.slideHandler(slide);

});
};

$.fn.unslick = function (index, element) {
$.fn.unslick = function () {
var _ = this;
return _.each(function () {
return _.each(function (index, element) {

element.slider.destroy();

Expand Down
Loading

0 comments on commit 8ac5e31

Please sign in to comment.