8000 allow .unslider("fn") chaining · Dream-git/unslider@23e5c3e · GitHub
[go: up one dir, main page]

Skip to content

Commit 23e5c3e

Browse files
author
Visual Idiot
committed
allow .unslider("fn") chaining
1 parent 561bf97 commit 23e5c3e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dist/js/unslider-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/unslider.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@
486486

487487

488488
// Fade between slides rather than, uh, sliding it
489-
self.animateFade = function(to, dir) {
489+
self.animateFade = function(to) {
490490
var $active = self.$slides.eq(to).addClass(self.options.activeClass);
491491

492492
// Toggle our classes
@@ -557,7 +557,9 @@
557557
return $.isFunction(call) && call.apply($this, args);
558558
}
559559

560-
return $.isFunction(call) && call();
560+
$.isFunction(call) && call();
561+
562+
return this;
561563
}
562564

563565
return $this.data('unslider', new $.Unslider($this, opts));

0 commit comments

Comments
 (0)
0