Skip to content

Commit

Permalink
Minor fixes to callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsalminen committed Apr 26, 2013
1 parent 60aa88f commit 8d1af0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions responsiveslides.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! ResponsiveSlides.js v1.53
/*! ResponsiveSlides.js v1.54
* http://responsiveslides.com
* http://viljamis.com
*
Expand Down Expand Up @@ -27,8 +27,8 @@
"navContainer": "", // Selector: Where auto generated controls should be appended to, default is after the <ul>
"manualControls": "", // Selector: Declare custom pager navigation
"namespace": "rslides", // String: change the default namespace used
before: $.noop, // Function: Before callback
after: $.noop // Function: After callback
"before": $.noop, // Function: Before callback
"after": $.noop // Function: After callback
}, options);

return this.each(function () {
Expand Down Expand Up @@ -93,7 +93,7 @@

// Fading animation
slideTo = function (idx) {
settings.before.call($slide.eq(idx));
settings.before(idx);
// If CSS3 transitions are supported
if (supportsTransitions) {
$slide
Expand All @@ -104,7 +104,7 @@
.css(visible);
index = idx;
setTimeout(function () {
settings.after.call($slide.eq(idx));
settings.after(idx);
}, fadeTime);
// If not, use jQuery fallback
} else {
Expand All @@ -121,7 +121,7 @@
$(this)
.addClass(visibleClass)
.css(visible);
settings.after.call($slide.eq(idx));
settings.after(idx);
index = idx;
});
}
Expand Down

0 comments on commit 8d1af0e

Please sign in to comment.