Permalink
Browse files

Merge pull request #2690 from leggomuhgreggo/jquery-ready

update on ready event listeners to jquery 3 compliant syntax
  • Loading branch information...
2 parents f7db4ed + 17f4d89 commit 851da94243016b6fdcce276baf641c2a847a4a56 @kenwheeler committed on GitHub Jan 10, 2017
Showing with 1 addition and 2 deletions.
  1. +1 −2 slick/slick.js
View
@@ -794,7 +794,6 @@
$('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
$(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
- $(document).off('ready.slick.slick-' + _.instanceUid, _.setPosition);
};
@@ -1406,7 +1405,7 @@
$('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
$(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
- $(document).on('ready.slick.slick-' + _.instanceUid, _.setPosition);
+ $(document).ready(_.setPosition);
};

0 comments on commit 851da94

Please sign in to comment.