Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion jquery.touchslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ http://touchslider.com
pagination: "." + namespace + "-nav-item",
currentClass: namespace + "-nav-item-current",
duration: 350,
mouseTouch: true
mouseTouch: true,
callback: function() {}
// [container, scroller]
}, options);

Expand Down Expand Up @@ -399,6 +400,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