Skip to content

Commit

Permalink
reinit
Browse files Browse the repository at this point in the history
  • Loading branch information
Visual Idiot committed Dec 23, 2015
1 parent 0302eb7 commit 1e6558f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/unslider-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/js/unslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,9 @@
var call = $this.data('unslider')[opts[0]];

// Do we have arguments to pass to the string-function?
$.isFunction(call) && call.apply($this, opts[1] ? opts[1].split(',') : null);
if($.isFunction(call)) {
return call.apply($this, opts[1] ? opts[1].split(',') : null);
}
}

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

0 comments on commit 1e6558f

Please sign in to comment.