Skip to content

Commit

Permalink
merge lusever#1 and lusever#8
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliaksei Bykouski authored and Aliaksei Bykouski committed Oct 28, 2013
2 parents 09d0603 + 0c78b0d commit b3341c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jquery.touchslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ http://touchslider.com
currentClass: namespace + "-nav-item-current",
duration: 350,
mouseTouch: true,
page: 0
page: 0,
callback: function() {}
// [container, scroller]
}, options);

Expand Down Expand Up @@ -400,6 +401,7 @@ http://touchslider.com
function changedView(index) {
pagination.removeClass(options.currentClass)
.eq(index).addClass(options.currentClass);
options.callback.call(this, index);
}

// set item or next
Expand Down Expand Up @@ -467,10 +469,12 @@ http://touchslider.com
// left/right button
$(options.prev, container).click(function() {
prev();
return false;
});

$(options.next, container).click(function() {
next();
return false;
});

function initTouch() {
Expand Down

0 comments on commit b3341c8

Please sign in to comment.