Skip to content

Commit

Permalink
Accessing bxslider's slider object inside its “onSliderLoad” callback…
Browse files Browse the repository at this point in the history
… returns undefined stevenwanderski#475
  • Loading branch information
Eric Wafford committed Feb 8, 2015
1 parent 7e0ba16 commit 4f56d19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.bxslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
// make sure everything is positioned just right (same as a window resize)
el.redrawSlider();
// onSliderLoad callback
slider.settings.onSliderLoad(slider.active.index);
slider.settings.onSliderLoad(slider,slider.active.index);
// slider has been fully initialized
slider.initialized = true;
// bind the resize call to the window
Expand Down
Loading

0 comments on commit 4f56d19

Please sign in to comment.