Skip to content

Commit

Permalink
Merge pull request #2848 from okonomiyaki3000/patch-1
Browse files Browse the repository at this point in the history
jQuery's 'ready' event deprecated
  • Loading branch information
leggomuhgreggo authored Apr 20, 2017
2 parents fc8fb5a + 06dc957 commit 4aad84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default {
$("[draggable!=true]", this.$slideTrack).on("dragstart", this.preventDefault);

$(window).on("load.slick.slick-" + this.instanceUid, this.setPosition);
$(document).on("ready.slick.slick-" + this.instanceUid, this.setPosition);
$(this.setPosition);
},
keyHandler(event: Object) {
//Dont slide if the cursor is inside the form fields and arrow keys are pressed
Expand Down

0 comments on commit 4aad84a

Please sign in to comment.